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
#initialize ⇒ Armor
Returns a new instance of Armor.
642 643 644 645 646 647 |
# File 'lib/rgss3/rpg.rb', line 642 def initialize super @atype_id = 0 @etype_id = 1 @features.push(RPG::BaseItem::Feature.new(22, 1, 0)) end |
Instance Attribute Details
#atype_id ⇒ Object
Returns the value of attribute atype_id.
651 652 653 |
# File 'lib/rgss3/rpg.rb', line 651 def atype_id @atype_id end |
Instance Method Details
#performance ⇒ Object
648 649 650 |
# File 'lib/rgss3/rpg.rb', line 648 def performance params[3] + params[5] + params.inject(0) {|r, v| r += v } end |