Class: Studio::BallItem

Inherits:
Item show all
Defined in:
docs/3_Studio.rb

Overview

Data class describing an Item that allow the player to catch a creature

Constant Summary

Constants inherited from Item

Item::ItemGetME

Instance Attribute Summary collapse

Attributes inherited from Item

#db_symbol, #fling_power, #icon, #id, #is_battle_usable, #is_holdable, #is_limited, #is_map_usable, #position, #price, #socket

Method Summary

Methods inherited from Item

#description, #exact_name, #me, #name, #plural_name

Instance Attribute Details

#catch_rateInteger, Float (readonly)

Get the rate of the ball in worse conditions

Returns:

  • (Integer, Float)


1219
1220
1221
# File 'docs/3_Studio.rb', line 1219

def catch_rate
  @catch_rate
end

#colorColor (readonly)

Get the color of the ball

Returns:



1222
1223
1224
# File 'docs/3_Studio.rb', line 1222

def color
  @color
end

#sprite_filenameString (readonly) Also known as: img

Get the image of the ball

Returns:



1216
1217
1218
# File 'docs/3_Studio.rb', line 1216

def sprite_filename
  @sprite_filename
end