Puzzle code for demo, etc

This commit is contained in:
Mathew 2015-11-27 02:19:31 -05:00 committed by Mathew Velasquez
parent 917d320342
commit 0836769fca
4 changed files with 34 additions and 7 deletions

View file

@ -3,6 +3,7 @@ class Game_Oneshot
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_accessor :player_name # map music (for battle memory)
attr_accessor :plight_timer # start of plight's plight
def initialize
user_name = Oneshot::USER_NAME.split(/\s+/)
@ -13,6 +14,7 @@ class Game_Oneshot
end
@lights = {}
self.lang = Oneshot::LANG
@plight_timer = nil
end
# lang
@ -29,9 +31,9 @@ class Game_Oneshot
# MARSHAL
def marshal_dump
[@player_name, @lang]
[@player_name, @lang, @plight_timer]
end
def marshal_load(array)
@player_name, self.lang = array
@player_name, self.lang, @plight_timer = array
end
end