Class: RPG::Armor
Instance Attribute Summary collapse
-
#atype_id ⇒ Object
Returns the value of attribute atype_id.
Attributes inherited from EquipItem
Attributes inherited from BaseItem
#description, #features, #icon_index, #id, #name, #note
Instance Method Summary collapse
-
#initialize ⇒ Armor
constructor
A new instance of Armor.
- #performance ⇒ Object
Constructor Details
Instance Attribute Details
#atype_id ⇒ Object
Returns the value of attribute atype_id.
12 13 14 |
# File 'lib/rpg/armor.rb', line 12 def atype_id @atype_id end |
Instance Method Details
#performance ⇒ Object
9 10 11 |
# File 'lib/rpg/armor.rb', line 9 def performance params[3] + params[5] + params.inject(0) {|r, v| r += v } end |