Class: RPG::EquipItem
Instance Attribute Summary collapse
-
#etype_id ⇒ Object
Returns the value of attribute etype_id.
-
#params ⇒ Object
Returns the value of attribute params.
-
#price ⇒ Object
Returns the value of attribute price.
Attributes inherited from BaseItem
#description, #features, #icon_index, #id, #name, #note
Instance Method Summary collapse
-
#initialize ⇒ EquipItem
constructor
A new instance of EquipItem.
Constructor Details
#initialize ⇒ EquipItem
Returns a new instance of EquipItem.
3 4 5 6 7 8 |
# File 'lib/rpg/equip_item.rb', line 3 def initialize super @price = 0 @etype_id = 0 @params = [0] * 8 end |
Instance Attribute Details
#etype_id ⇒ Object
Returns the value of attribute etype_id.
10 11 12 |
# File 'lib/rpg/equip_item.rb', line 10 def etype_id @etype_id end |
#params ⇒ Object
Returns the value of attribute params.
11 12 13 |
# File 'lib/rpg/equip_item.rb', line 11 def params @params end |
#price ⇒ Object
Returns the value of attribute price.
9 10 11 |
# File 'lib/rpg/equip_item.rb', line 9 def price @price end |