Class: RPG::State
Instance Attribute Summary collapse
-
#auto_removal_timing ⇒ Object
Returns the value of attribute auto_removal_timing.
-
#chance_by_damage ⇒ Object
Returns the value of attribute chance_by_damage.
-
#max_turns ⇒ Object
Returns the value of attribute max_turns.
-
#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.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#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.
-
#steps_to_remove ⇒ Object
Returns the value of attribute steps_to_remove.
Attributes inherited from BaseItem
#description, #features, #icon_index, #id, #name, #note
Instance Method Summary collapse
-
#initialize ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize ⇒ State
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_timing ⇒ Object
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_damage ⇒ Object
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_turns ⇒ Object
Returns the value of attribute max_turns.
732 733 734 |
# File 'lib/rgss3/rpg.rb', line 732 def max_turns @max_turns end |
#message1 ⇒ Object
Returns the value of attribute message1.
737 738 739 |
# File 'lib/rgss3/rpg.rb', line 737 def @message1 end |
#message2 ⇒ Object
Returns the value of attribute message2.
738 739 740 |
# File 'lib/rgss3/rpg.rb', line 738 def @message2 end |
#message3 ⇒ Object
Returns the value of attribute message3.
739 740 741 |
# File 'lib/rgss3/rpg.rb', line 739 def @message3 end |
#message4 ⇒ Object
Returns the value of attribute message4.
740 741 742 |
# File 'lib/rgss3/rpg.rb', line 740 def @message4 end |
#min_turns ⇒ Object
Returns the value of attribute min_turns.
731 732 733 |
# File 'lib/rgss3/rpg.rb', line 731 def min_turns @min_turns end |
#priority ⇒ Object
Returns the value of attribute priority.
727 728 729 |
# File 'lib/rgss3/rpg.rb', line 727 def priority @priority end |
#remove_at_battle_end ⇒ Object
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_damage ⇒ Object
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_restriction ⇒ Object
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_walking ⇒ Object
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 |
#restriction ⇒ Object
Returns the value of attribute restriction.
726 727 728 |
# File 'lib/rgss3/rpg.rb', line 726 def restriction @restriction end |
#steps_to_remove ⇒ Object
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 |