Data class for weapons.
The weapon ID.
The weapon name.
The weapon's icon graphic file name.
The weapon description.
The animation ID when using the weapon.
The animation ID when on the receiving end of the weapon.
The weapon's price.
The weapon's attack power.
The weapon's physical defense rating.
The weapon's magic defense rating.
The weapon's strength bonus.
The weapon's dexterity bonus.
The weapon's agility bonus.
The weapon's intelligence bonus.
The weapon's element. An Elemental ID array.
States to add. A State ID array.
States to cancel. A State ID array.
module RPG class Weapon def initialize @id = 0 @name = "" @icon_name = "" @description = "" @animation1_id = 0 @animation2_id = 0 @price = 0 @atk = 0 @pdef = 0 @mdef = 0 @str_plus = 0 @dex_plus = 0 @agi_plus = 0 @int_plus = 0 @element_set = [] @plus_state_set = [] @minus_state_set = [] end attr_accessor :id attr_accessor :name attr_accessor :icon_name attr_accessor :description attr_accessor :animation1_id attr_accessor :animation2_id attr_accessor :price attr_accessor :atk attr_accessor :pdef attr_accessor :mdef attr_accessor :str_plus attr_accessor :dex_plus attr_accessor :agi_plus attr_accessor :int_plus attr_accessor :element_set attr_accessor :plus_state_set attr_accessor :minus_state_set end end
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |