Class: Studio::TechItem
- Defined in:
- scripts/00800 Studio/00001 Data/00002 Item/00001 TechItem.rb
Overview
Data class describing an Item that allow a creature to learn a move
Constant Summary collapse
- HM_TM_TEXT =
HM/TM text
'%s %s'
Constants inherited from Item
Instance Attribute Summary collapse
-
#is_hm ⇒ Boolean
readonly
Get if the item is a Hidden Move or not.
-
#move ⇒ Symbol
(also: #move_db_symbol)
readonly
Get the db_symbol of the move it teaches.
Attributes inherited from Item
#db_symbol, #fling_power, #icon, #id, #is_battle_usable, #is_holdable, #is_limited, #is_map_usable, #position, #price, #socket
Instance Method Summary collapse
-
#exact_name ⇒ String
Get the exact name of the item.
Methods inherited from Item
#description, #me, #name, #plural_name
Instance Attribute Details
#is_hm ⇒ Boolean (readonly)
Get if the item is a Hidden Move or not
11 12 13 |
# File 'scripts/00800 Studio/00001 Data/00002 Item/00001 TechItem.rb', line 11 def is_hm @is_hm end |
#move ⇒ Symbol (readonly) Also known as: move_db_symbol
Get the db_symbol of the move it teaches
8 9 10 |
# File 'scripts/00800 Studio/00001 Data/00002 Item/00001 TechItem.rb', line 8 def move @move end |
Instance Method Details
#exact_name ⇒ String
Get the exact name of the item
17 18 19 |
# File 'scripts/00800 Studio/00001 Data/00002 Item/00001 TechItem.rb', line 17 def exact_name return format(HM_TM_TEXT, name, data_move(move).name) end |