Class: Studio::BallItem
Overview
Data class describing an Item that allow the player to catch a creature
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
#berry_data, #cooking_data, #db_symbol, #fling_power, #icon, #id, #is_allowing_mega, #is_battle_usable, #is_berry, #is_holdable, #is_limited, #is_map_usable, #position, #price, #socket
Method Summary
Methods inherited from Item
#bitter, #description, #dry, #exact_name, #me, #name, #plural_name, #sour, #spicy, #sweet
Instance Attribute Details
#catch_rate ⇒ Integer, Float (readonly)
Get the rate of the ball in worse conditions
1398 1399 1400 |
# File 'docs/3_Studio.rb', line 1398 def catch_rate @catch_rate end |
#color ⇒ Color (readonly)
Get the color of the ball
1401 1402 1403 |
# File 'docs/3_Studio.rb', line 1401 def color @color end |
#sprite_filename ⇒ String (readonly) Also known as: img
Get the image of the ball
1395 1396 1397 |
# File 'docs/3_Studio.rb', line 1395 def sprite_filename @sprite_filename end |