Class: RPG::State

Inherits:
BaseItem show all
Defined in:
lib/rgss3/rpg.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.



708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
# File 'lib/rgss3/rpg.rb', line 708

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.



730
731
732
# File 'lib/rgss3/rpg.rb', line 730

def auto_removal_timing
  @auto_removal_timing
end

#chance_by_damageObject

Returns the value of attribute chance_by_damage.



734
735
736
# File 'lib/rgss3/rpg.rb', line 734

def chance_by_damage
  @chance_by_damage
end

#max_turnsObject

Returns the value of attribute max_turns.



732
733
734
# File 'lib/rgss3/rpg.rb', line 732

def max_turns
  @max_turns
end

#message1Object

Returns the value of attribute message1.



737
738
739
# File 'lib/rgss3/rpg.rb', line 737

def message1
  @message1
end

#message2Object

Returns the value of attribute message2.



738
739
740
# File 'lib/rgss3/rpg.rb', line 738

def message2
  @message2
end

#message3Object

Returns the value of attribute message3.



739
740
741
# File 'lib/rgss3/rpg.rb', line 739

def message3
  @message3
end

#message4Object

Returns the value of attribute message4.



740
741
742
# File 'lib/rgss3/rpg.rb', line 740

def message4
  @message4
end

#min_turnsObject

Returns the value of attribute min_turns.



731
732
733
# File 'lib/rgss3/rpg.rb', line 731

def min_turns
  @min_turns
end

#priorityObject

Returns the value of attribute priority.



727
728
729
# File 'lib/rgss3/rpg.rb', line 727

def priority
  @priority
end

#remove_at_battle_endObject

Returns the value of attribute remove_at_battle_end.



728
729
730
# File 'lib/rgss3/rpg.rb', line 728

def remove_at_battle_end
  @remove_at_battle_end
end

#remove_by_damageObject

Returns the value of attribute remove_by_damage.



733
734
735
# File 'lib/rgss3/rpg.rb', line 733

def remove_by_damage
  @remove_by_damage
end

#remove_by_restrictionObject

Returns the value of attribute remove_by_restriction.



729
730
731
# File 'lib/rgss3/rpg.rb', line 729

def remove_by_restriction
  @remove_by_restriction
end

#remove_by_walkingObject

Returns the value of attribute remove_by_walking.



735
736
737
# File 'lib/rgss3/rpg.rb', line 735

def remove_by_walking
  @remove_by_walking
end

#restrictionObject

Returns the value of attribute restriction.



726
727
728
# File 'lib/rgss3/rpg.rb', line 726

def restriction
  @restriction
end

#steps_to_removeObject

Returns the value of attribute steps_to_remove.



736
737
738
# File 'lib/rgss3/rpg.rb', line 736

def steps_to_remove
  @steps_to_remove
end