Class: Studio::BallItem
- Defined in:
- scripts/00800 Studio/00001 Data/00002 Item/00002 BallItem.rb
Overview
Data class describing an Item that allow the player to catch a creature
Constant Summary
Constants inherited from Item
Instance Attribute Summary collapse
-
#catch_rate ⇒ Integer, Float
readonly
Get the rate of the ball in worse conditions.
-
#color ⇒ Color
readonly
Get the color of the ball.
-
#sprite_filename ⇒ String
(also: #img)
readonly
Get the image of the ball.
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_rate ⇒ Integer, Float (readonly)
Get the rate of the ball in worse conditions
9 10 11 |
# File 'scripts/00800 Studio/00001 Data/00002 Item/00002 BallItem.rb', line 9 def catch_rate @catch_rate end |
#color ⇒ Color (readonly)
Get the color of the ball
12 13 14 |
# File 'scripts/00800 Studio/00001 Data/00002 Item/00002 BallItem.rb', line 12 def color @color end |
#sprite_filename ⇒ String (readonly) Also known as: img
Get the image of the ball
6 7 8 |
# File 'scripts/00800 Studio/00001 Data/00002 Item/00002 BallItem.rb', line 6 def sprite_filename @sprite_filename end |