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.
879 880 881 882 883 884 |
# File 'lib/R3EXS/RGSS3.rb', line 879 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.
890 891 892 |
# File 'lib/R3EXS/RGSS3.rb', line 890 def atype_id @atype_id end |
Instance Method Details
#performance ⇒ Object
886 887 888 |
# File 'lib/R3EXS/RGSS3.rb', line 886 def performance params[3] + params[5] + params.inject(0) { |r, v| r += v } end |