Class: RPG::Armor
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/armor.rb
Overview
The data class for armor.
Instance Attribute Summary collapse
-
#agi ⇒ Object
Returns the value of attribute agi.
-
#agi_plus ⇒ Object
Returns the value of attribute agi_plus.
-
#atk ⇒ Object
Returns the value of attribute atk.
-
#atype_id ⇒ Object
Returns the value of attribute atype_id.
-
#auto_hp_recover ⇒ Object
Returns the value of attribute auto_hp_recover.
-
#auto_state_id ⇒ Object
Returns the value of attribute auto_state_id.
-
#def ⇒ Object
Returns the value of attribute def.
-
#description ⇒ Object
Returns the value of attribute description.
-
#dex_plus ⇒ Object
Returns the value of attribute dex_plus.
-
#double_exp_gain ⇒ Object
Returns the value of attribute double_exp_gain.
-
#element_set ⇒ Object
Returns the value of attribute element_set.
-
#eva ⇒ Object
Returns the value of attribute eva.
-
#guard_element_set ⇒ Object
Returns the value of attribute guard_element_set.
-
#guard_state_set ⇒ Object
Returns the value of attribute guard_state_set.
-
#half_mp_cost ⇒ Object
Returns the value of attribute half_mp_cost.
-
#icon_name ⇒ Object
Returns the value of attribute icon_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#int_plus ⇒ Object
Returns the value of attribute int_plus.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#mdef ⇒ Object
Returns the value of attribute mdef.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pdef ⇒ Object
Returns the value of attribute pdef.
-
#prevent_critical ⇒ Object
Returns the value of attribute prevent_critical.
-
#price ⇒ Object
Returns the value of attribute price.
-
#spi ⇒ Object
Returns the value of attribute spi.
-
#state_set ⇒ Object
Returns the value of attribute state_set.
-
#str_plus ⇒ Object
Returns the value of attribute str_plus.
Attributes inherited from EquipItem
Attributes inherited from BaseItem
Instance Method Summary collapse
-
#initialize ⇒ Armor
constructor
A new instance of Armor.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ Armor
Returns a new instance of Armor.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 11 def initialize super @kind = 0 @price = 0 @eva = 0 @atk = 0 @def = 0 @spi = 0 @agi = 0 @prevent_critical = false @half_mp_cost = false @double_exp_gain = false @auto_hp_recover = false @element_set = [] @state_set = [] end |
Instance Attribute Details
#agi ⇒ Object
Returns the value of attribute agi.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def agi @agi end |
#agi_plus ⇒ Object
Returns the value of attribute agi_plus.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def agi_plus @agi_plus end |
#atk ⇒ Object
Returns the value of attribute atk.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def atk @atk end |
#atype_id ⇒ Object
Returns the value of attribute atype_id.
18 19 20 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/armor.rb', line 18 def atype_id @atype_id end |
#auto_hp_recover ⇒ Object
Returns the value of attribute auto_hp_recover.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def auto_hp_recover @auto_hp_recover end |
#auto_state_id ⇒ Object
Returns the value of attribute auto_state_id.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def auto_state_id @auto_state_id end |
#def ⇒ Object
Returns the value of attribute def.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def def @def end |
#description ⇒ Object
Returns the value of attribute description.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def description @description end |
#dex_plus ⇒ Object
Returns the value of attribute dex_plus.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def dex_plus @dex_plus end |
#double_exp_gain ⇒ Object
Returns the value of attribute double_exp_gain.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def double_exp_gain @double_exp_gain end |
#element_set ⇒ Object
Returns the value of attribute element_set.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def element_set @element_set end |
#eva ⇒ Object
Returns the value of attribute eva.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def eva @eva end |
#guard_element_set ⇒ Object
Returns the value of attribute guard_element_set.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def guard_element_set @guard_element_set end |
#guard_state_set ⇒ Object
Returns the value of attribute guard_state_set.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def guard_state_set @guard_state_set end |
#half_mp_cost ⇒ Object
Returns the value of attribute half_mp_cost.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def half_mp_cost @half_mp_cost end |
#icon_name ⇒ Object
Returns the value of attribute icon_name.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def icon_name @icon_name end |
#id ⇒ Object
Returns the value of attribute id.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def id @id end |
#int_plus ⇒ Object
Returns the value of attribute int_plus.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def int_plus @int_plus end |
#kind ⇒ Object
Returns the value of attribute kind.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def kind @kind end |
#mdef ⇒ Object
Returns the value of attribute mdef.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def mdef @mdef end |
#name ⇒ Object
Returns the value of attribute name.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def name @name end |
#pdef ⇒ Object
Returns the value of attribute pdef.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def pdef @pdef end |
#prevent_critical ⇒ Object
Returns the value of attribute prevent_critical.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def prevent_critical @prevent_critical end |
#price ⇒ Object
Returns the value of attribute price.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def price @price end |
#spi ⇒ Object
Returns the value of attribute spi.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def spi @spi end |
#state_set ⇒ Object
Returns the value of attribute state_set.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/armor.rb', line 28 def state_set @state_set end |
#str_plus ⇒ Object
Returns the value of attribute str_plus.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 34 def str_plus @str_plus end |
Instance Method Details
#to_s ⇒ Object
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 30 def to_s @name.to_s end |