Class: Studio::BallItem
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
1219 1220 1221 |
# File 'docs/3_Studio.rb', line 1219 def catch_rate @catch_rate end |
#color ⇒ Color (readonly)
Get the color of the ball
1222 1223 1224 |
# File 'docs/3_Studio.rb', line 1222 def color @color end |
#sprite_filename ⇒ String (readonly) Also known as: img
Get the image of the ball
1216 1217 1218 |
# File 'docs/3_Studio.rb', line 1216 def sprite_filename @sprite_filename end |