Class: RPG::State
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb
Overview
The data class for state.
Instance Attribute Summary collapse
-
#agi_rate ⇒ Object
Returns the value of attribute agi_rate.
-
#animation_id ⇒ Object
Returns the value of attribute animation_id.
-
#atk_rate ⇒ Object
Returns the value of attribute atk_rate.
-
#auto_release_prob ⇒ Object
Returns the value of attribute auto_release_prob.
-
#auto_removal_timing ⇒ Object
Returns the value of attribute auto_removal_timing.
-
#battle_only ⇒ Object
Returns the value of attribute battle_only.
-
#cant_evade ⇒ Object
Returns the value of attribute cant_evade.
-
#cant_get_exp ⇒ Object
Returns the value of attribute cant_get_exp.
-
#chance_by_damage ⇒ Object
Returns the value of attribute chance_by_damage.
-
#def_rate ⇒ Object
Returns the value of attribute def_rate.
-
#dex_rate ⇒ Object
Returns the value of attribute dex_rate.
-
#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.
-
#hit_rate ⇒ Object
Returns the value of attribute hit_rate.
-
#hold_turn ⇒ Object
Returns the value of attribute hold_turn.
-
#icon_index ⇒ Object
Returns the value of attribute icon_index.
-
#id ⇒ Object
Returns the value of attribute id.
-
#int_rate ⇒ Object
Returns the value of attribute int_rate.
-
#max_turns ⇒ Object
Returns the value of attribute max_turns.
-
#maxhp_rate ⇒ Object
Returns the value of attribute maxhp_rate.
-
#maxsp_rate ⇒ Object
Returns the value of attribute maxsp_rate.
-
#mdef_rate ⇒ Object
Returns the value of attribute mdef_rate.
-
#message1 ⇒ Object
Returns the value of attribute message1.
-
#message2 ⇒ Object
Returns the value of attribute message2.
-
#message3 ⇒ Object
Returns the value of attribute message3.
-
#message4 ⇒ Object
Returns the value of attribute message4.
-
#min_turns ⇒ Object
Returns the value of attribute min_turns.
-
#minus_state_set ⇒ Object
Returns the value of attribute minus_state_set.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nonresistance ⇒ Object
Returns the value of attribute nonresistance.
-
#note ⇒ Object
Returns the value of attribute note.
-
#offset_by_opposite ⇒ Object
Returns the value of attribute offset_by_opposite.
-
#pdef_rate ⇒ Object
Returns the value of attribute pdef_rate.
-
#plus_state_set ⇒ Object
Returns the value of attribute plus_state_set.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#reduce_hit_ratio ⇒ Object
Returns the value of attribute reduce_hit_ratio.
-
#release_by_damage ⇒ Object
Returns the value of attribute release_by_damage.
-
#remove_at_battle_end ⇒ Object
Returns the value of attribute remove_at_battle_end.
-
#remove_by_damage ⇒ Object
Returns the value of attribute remove_by_damage.
-
#remove_by_restriction ⇒ Object
Returns the value of attribute remove_by_restriction.
-
#remove_by_walking ⇒ Object
Returns the value of attribute remove_by_walking.
-
#restriction ⇒ Object
Returns the value of attribute restriction.
-
#shock_release_prob ⇒ Object
Returns the value of attribute shock_release_prob.
-
#slip_damage ⇒ Object
Returns the value of attribute slip_damage.
-
#spi_rate ⇒ Object
Returns the value of attribute spi_rate.
-
#state_set ⇒ Object
Returns the value of attribute state_set.
-
#steps_to_remove ⇒ Object
Returns the value of attribute steps_to_remove.
-
#str_rate ⇒ Object
Returns the value of attribute str_rate.
-
#zero_hp ⇒ Object
Returns the value of attribute zero_hp.
Attributes inherited from BaseItem
Instance Method Summary collapse
-
#initialize ⇒ State
constructor
A new instance of State.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ State
Returns a new instance of State.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 11 def initialize @id = 0 @name = "" @icon_index = 0 @restriction = 0 @priority = 5 @atk_rate = 100 @def_rate = 100 @spi_rate = 100 @agi_rate = 100 @nonresistance = false @offset_by_opposite = false @slip_damage = false @reduce_hit_ratio = false @battle_only = true @release_by_damage = false @hold_turn = 0 @auto_release_prob = 0 @message1 = "" @message2 = "" @message3 = "" @message4 = "" @element_set = [] @state_set = [] @note = "" end |
Instance Attribute Details
#agi_rate ⇒ Object
Returns the value of attribute agi_rate.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def agi_rate @agi_rate end |
#animation_id ⇒ Object
Returns the value of attribute animation_id.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def animation_id @animation_id end |
#atk_rate ⇒ Object
Returns the value of attribute atk_rate.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def atk_rate @atk_rate end |
#auto_release_prob ⇒ Object
Returns the value of attribute auto_release_prob.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def auto_release_prob @auto_release_prob end |
#auto_removal_timing ⇒ Object
Returns the value of attribute auto_removal_timing.
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb', line 30 def auto_removal_timing @auto_removal_timing end |
#battle_only ⇒ Object
Returns the value of attribute battle_only.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def battle_only @battle_only end |
#cant_evade ⇒ Object
Returns the value of attribute cant_evade.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def cant_evade @cant_evade end |
#cant_get_exp ⇒ Object
Returns the value of attribute cant_get_exp.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def cant_get_exp @cant_get_exp end |
#chance_by_damage ⇒ Object
Returns the value of attribute chance_by_damage.
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb', line 30 def chance_by_damage @chance_by_damage end |
#def_rate ⇒ Object
Returns the value of attribute def_rate.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def def_rate @def_rate end |
#dex_rate ⇒ Object
Returns the value of attribute dex_rate.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def dex_rate @dex_rate end |
#element_set ⇒ Object
Returns the value of attribute element_set.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def element_set @element_set end |
#eva ⇒ Object
Returns the value of attribute eva.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def eva @eva end |
#guard_element_set ⇒ Object
Returns the value of attribute guard_element_set.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def guard_element_set @guard_element_set end |
#hit_rate ⇒ Object
Returns the value of attribute hit_rate.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def hit_rate @hit_rate end |
#hold_turn ⇒ Object
Returns the value of attribute hold_turn.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def hold_turn @hold_turn end |
#icon_index ⇒ Object
Returns the value of attribute icon_index.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def icon_index @icon_index end |
#id ⇒ Object
Returns the value of attribute id.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def id @id end |
#int_rate ⇒ Object
Returns the value of attribute int_rate.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def int_rate @int_rate end |
#max_turns ⇒ Object
Returns the value of attribute max_turns.
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb', line 30 def max_turns @max_turns end |
#maxhp_rate ⇒ Object
Returns the value of attribute maxhp_rate.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def maxhp_rate @maxhp_rate end |
#maxsp_rate ⇒ Object
Returns the value of attribute maxsp_rate.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def maxsp_rate @maxsp_rate end |
#mdef_rate ⇒ Object
Returns the value of attribute mdef_rate.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def mdef_rate @mdef_rate end |
#message1 ⇒ Object
Returns the value of attribute message1.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def @message1 end |
#message2 ⇒ Object
Returns the value of attribute message2.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def @message2 end |
#message3 ⇒ Object
Returns the value of attribute message3.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def @message3 end |
#message4 ⇒ Object
Returns the value of attribute message4.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def @message4 end |
#min_turns ⇒ Object
Returns the value of attribute min_turns.
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb', line 30 def min_turns @min_turns end |
#minus_state_set ⇒ Object
Returns the value of attribute minus_state_set.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def minus_state_set @minus_state_set end |
#name ⇒ Object
Returns the value of attribute name.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def name @name end |
#nonresistance ⇒ Object
Returns the value of attribute nonresistance.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def nonresistance @nonresistance end |
#note ⇒ Object
Returns the value of attribute note.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def note @note end |
#offset_by_opposite ⇒ Object
Returns the value of attribute offset_by_opposite.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def offset_by_opposite @offset_by_opposite end |
#pdef_rate ⇒ Object
Returns the value of attribute pdef_rate.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def pdef_rate @pdef_rate end |
#plus_state_set ⇒ Object
Returns the value of attribute plus_state_set.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def plus_state_set @plus_state_set end |
#priority ⇒ Object
Returns the value of attribute priority.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def priority @priority end |
#rating ⇒ Object
Returns the value of attribute rating.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def @rating end |
#reduce_hit_ratio ⇒ Object
Returns the value of attribute reduce_hit_ratio.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def reduce_hit_ratio @reduce_hit_ratio end |
#release_by_damage ⇒ Object
Returns the value of attribute release_by_damage.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def release_by_damage @release_by_damage end |
#remove_at_battle_end ⇒ Object
Returns the value of attribute remove_at_battle_end.
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb', line 30 def remove_at_battle_end @remove_at_battle_end end |
#remove_by_damage ⇒ Object
Returns the value of attribute remove_by_damage.
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb', line 30 def remove_by_damage @remove_by_damage end |
#remove_by_restriction ⇒ Object
Returns the value of attribute remove_by_restriction.
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb', line 30 def remove_by_restriction @remove_by_restriction end |
#remove_by_walking ⇒ Object
Returns the value of attribute remove_by_walking.
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb', line 30 def remove_by_walking @remove_by_walking end |
#restriction ⇒ Object
Returns the value of attribute restriction.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def restriction @restriction end |
#shock_release_prob ⇒ Object
Returns the value of attribute shock_release_prob.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def shock_release_prob @shock_release_prob end |
#slip_damage ⇒ Object
Returns the value of attribute slip_damage.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def slip_damage @slip_damage end |
#spi_rate ⇒ Object
Returns the value of attribute spi_rate.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def spi_rate @spi_rate end |
#state_set ⇒ Object
Returns the value of attribute state_set.
42 43 44 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 42 def state_set @state_set end |
#steps_to_remove ⇒ Object
Returns the value of attribute steps_to_remove.
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/state.rb', line 30 def steps_to_remove @steps_to_remove end |
#str_rate ⇒ Object
Returns the value of attribute str_rate.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def str_rate @str_rate end |
#zero_hp ⇒ Object
Returns the value of attribute zero_hp.
46 47 48 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/state.rb', line 46 def zero_hp @zero_hp end |
Instance Method Details
#to_s ⇒ Object
38 39 40 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 38 def to_s @name.to_s end |