Class: Studio::TechItem

Inherits:
Item show all
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

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

Instance Method Summary collapse

Methods inherited from Item

#description, #me, #name, #plural_name

Instance Attribute Details

#is_hmBoolean (readonly)

Get if the item is a Hidden Move or not

Returns:

  • (Boolean)


11
12
13
# File 'scripts/00800 Studio/00001 Data/00002 Item/00001 TechItem.rb', line 11

def is_hm
  @is_hm
end

#moveSymbol (readonly) Also known as: move_db_symbol

Get the db_symbol of the move it teaches

Returns:

  • (Symbol)


8
9
10
# File 'scripts/00800 Studio/00001 Data/00002 Item/00001 TechItem.rb', line 8

def move
  @move
end

Instance Method Details

#exact_nameString

Get the exact name of the item

Returns:



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