Class: RPG::State

Inherits:
BaseItem show all
Defined in:
lib/R3EXS/RGSS3.rb

Instance Attribute Summary collapse

Attributes inherited from BaseItem

#description, #features, #icon_index, #id, #name, #note

Instance Method Summary collapse

Constructor Details

#initializeState

Returns a new instance of State.



896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
# File 'lib/R3EXS/RGSS3.rb', line 896

def initialize
    super
    @restriction           = 0
    @priority              = 50
    @remove_at_battle_end  = false
    @remove_by_restriction = false
    @auto_removal_timing   = 0
    @min_turns             = 1
    @max_turns             = 1
    @remove_by_damage      = false
    @chance_by_damage      = 100
    @remove_by_walking     = false
    @steps_to_remove       = 100
    @message1              = ''
    @message2              = ''
    @message3              = ''
    @message4              = ''
end

Instance Attribute Details

#auto_removal_timingObject

Returns the value of attribute auto_removal_timing.



919
920
921
# File 'lib/R3EXS/RGSS3.rb', line 919

def auto_removal_timing
  @auto_removal_timing
end

#chance_by_damageObject

Returns the value of attribute chance_by_damage.



923
924
925
# File 'lib/R3EXS/RGSS3.rb', line 923

def chance_by_damage
  @chance_by_damage
end

#max_turnsObject

Returns the value of attribute max_turns.



921
922
923
# File 'lib/R3EXS/RGSS3.rb', line 921

def max_turns
  @max_turns
end

#message1Object

Returns the value of attribute message1.



926
927
928
# File 'lib/R3EXS/RGSS3.rb', line 926

def message1
  @message1
end

#message2Object

Returns the value of attribute message2.



927
928
929
# File 'lib/R3EXS/RGSS3.rb', line 927

def message2
  @message2
end

#message3Object

Returns the value of attribute message3.



928
929
930
# File 'lib/R3EXS/RGSS3.rb', line 928

def message3
  @message3
end

#message4Object

Returns the value of attribute message4.



929
930
931
# File 'lib/R3EXS/RGSS3.rb', line 929

def message4
  @message4
end

#min_turnsObject

Returns the value of attribute min_turns.



920
921
922
# File 'lib/R3EXS/RGSS3.rb', line 920

def min_turns
  @min_turns
end

#priorityObject

Returns the value of attribute priority.



916
917
918
# File 'lib/R3EXS/RGSS3.rb', line 916

def priority
  @priority
end

#remove_at_battle_endObject

Returns the value of attribute remove_at_battle_end.



917
918
919
# File 'lib/R3EXS/RGSS3.rb', line 917

def remove_at_battle_end
  @remove_at_battle_end
end

#remove_by_damageObject

Returns the value of attribute remove_by_damage.



922
923
924
# File 'lib/R3EXS/RGSS3.rb', line 922

def remove_by_damage
  @remove_by_damage
end

#remove_by_restrictionObject

Returns the value of attribute remove_by_restriction.



918
919
920
# File 'lib/R3EXS/RGSS3.rb', line 918

def remove_by_restriction
  @remove_by_restriction
end

#remove_by_walkingObject

Returns the value of attribute remove_by_walking.



924
925
926
# File 'lib/R3EXS/RGSS3.rb', line 924

def remove_by_walking
  @remove_by_walking
end

#restrictionObject

Returns the value of attribute restriction.



915
916
917
# File 'lib/R3EXS/RGSS3.rb', line 915

def restriction
  @restriction
end

#steps_to_removeObject

Returns the value of attribute steps_to_remove.



925
926
927
# File 'lib/R3EXS/RGSS3.rb', line 925

def steps_to_remove
  @steps_to_remove
end