Class: RPG::Armor

Inherits:
EquipItem show all
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

Attributes inherited from EquipItem

#etype_id, #params

Attributes inherited from BaseItem

#features, #icon_index, #note

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeArmor

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

#agiObject

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_plusObject

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

#atkObject

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_idObject

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_recoverObject

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_idObject

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

#defObject

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

#descriptionObject

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_plusObject

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_gainObject

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_setObject

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

#evaObject

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_setObject

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_setObject

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_costObject

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_nameObject

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

#idObject

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_plusObject

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

#kindObject

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

#mdefObject

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

#nameObject

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

#pdefObject

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_criticalObject

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

#priceObject

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

#spiObject

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_setObject

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_plusObject

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_sObject



30
31
32
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/armor.rb', line 30

def to_s
  @name.to_s
end