Class: Studio::StatusHealItem

Inherits:
HealingItem show all
Defined in:
scripts/00800 Studio/00001 Data/00002 Item/00300 StatusHealItem.rb

Overview

Data class describing an Item that heals status

Constant Summary

Constants inherited from Item

Item::ItemGetME

Instance Attribute Summary collapse

Attributes inherited from HealingItem

#loyalty_malus

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, #exact_name, #me, #name, #plural_name

Instance Attribute Details

#status_listArray<Symbol>

Get the list of states the item heals

Returns:

  • (Array<Symbol>)


6
7
8
# File 'scripts/00800 Studio/00001 Data/00002 Item/00300 StatusHealItem.rb', line 6

def status_list
  @status_list
end

Instance Method Details

#status_id_listArray<Integer>

Get the status as Integer

Returns:



10
11
12
# File 'scripts/00800 Studio/00001 Data/00002 Item/00300 StatusHealItem.rb', line 10

def status_id_list
  @status_id_list ||= status_list.map { |status| Configs.states.ids[status] }
end