Class: RPG::State

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

Attributes inherited from BaseItem

#description, #features

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeState

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_rateObject

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_idObject

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_rateObject

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_probObject

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_timingObject

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_onlyObject

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_evadeObject

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_expObject

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_damageObject

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_rateObject

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_rateObject

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_setObject

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

#evaObject

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_setObject

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_rateObject

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_turnObject

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_indexObject

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

#idObject

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_rateObject

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_turnsObject

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_rateObject

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_rateObject

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_rateObject

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

#message1Object

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
  @message1
end

#message2Object

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
  @message2
end

#message3Object

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
  @message3
end

#message4Object

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
  @message4
end

#min_turnsObject

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_setObject

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

#nameObject

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

#nonresistanceObject

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

#noteObject

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_oppositeObject

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_rateObject

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_setObject

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

#priorityObject

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

#ratingObject

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
  @rating
end

#reduce_hit_ratioObject

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_damageObject

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_endObject

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_damageObject

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_restrictionObject

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_walkingObject

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

#restrictionObject

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_probObject

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_damageObject

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_rateObject

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_setObject

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_removeObject

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_rateObject

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_hpObject

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_sObject



38
39
40
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/state.rb', line 38

def to_s
  @name.to_s
end