mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-21 06:19:56 +00:00
no more time
This commit is contained in:
parent
498ade2600
commit
2aa4ba3f71
1 changed files with 12 additions and 12 deletions
|
|
@ -144,8 +144,8 @@ module Script
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.countdown_over
|
def self.countdown_over
|
||||||
equinox = Time.new(2017, 03, 27)
|
equinox = 0 #Time.new(2017, 03, 27)
|
||||||
diff = equinox - Time.now
|
diff = equinox - 0 #Time.now
|
||||||
if(diff <= 0)
|
if(diff <= 0)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
@ -153,8 +153,8 @@ module Script
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.countdown_extend_over
|
def self.countdown_extend_over
|
||||||
equinox = Time.new(2017, 03, 27)
|
equinox = 0 #Time.new(2017, 03, 27)
|
||||||
diff = equinox - Time.now
|
diff = equinox - 0 #Time.now
|
||||||
if(diff <= 0)
|
if(diff <= 0)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
@ -162,7 +162,7 @@ module Script
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.cdown_update(equinox)
|
def self.cdown_update(equinox)
|
||||||
diff = equinox - Time.now
|
diff = equinox - 0 #Time.now
|
||||||
if(diff < 0)
|
if(diff < 0)
|
||||||
diff = 0
|
diff = 0
|
||||||
end
|
end
|
||||||
|
|
@ -226,16 +226,16 @@ module Script
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.countdown_update
|
def self.countdown_update
|
||||||
return cdown_update(Time.new(2017, 03, 27))
|
return cdown_update(0) #(Time.new(2017, 03, 27))
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.countdown_extend_update
|
def self.countdown_extend_update
|
||||||
return cdown_update(Time.new(2017, 03, 27))
|
return cdown_update(0) #(Time.new(2017, 03, 27))
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.countdown_update_rue
|
def self.countdown_update_rue
|
||||||
if @rue_equinox == nil
|
if @rue_equinox == nil
|
||||||
@rue_equinox = Time.now + 6
|
@rue_equinox = 6 #Time.now + 6
|
||||||
end
|
end
|
||||||
return cdown_update(@rue_equinox)
|
return cdown_update(@rue_equinox)
|
||||||
end
|
end
|
||||||
|
|
@ -629,7 +629,7 @@ def loadQASave(fname)
|
||||||
# Play load SE
|
# Play load SE
|
||||||
$game_system.se_play($data_system.load_se)
|
$game_system.se_play($data_system.load_se)
|
||||||
|
|
||||||
# Read save data
|
# Read save data
|
||||||
file = File.open(filename, "rb")
|
file = File.open(filename, "rb")
|
||||||
# Read character data for drawing save file
|
# Read character data for drawing save file
|
||||||
characters = Marshal.load(file)
|
characters = Marshal.load(file)
|
||||||
|
|
@ -767,7 +767,7 @@ end
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
def watcher_tell_time
|
def watcher_tell_time
|
||||||
hour = Time.now.hour
|
hour = 0 #Time.now.hour
|
||||||
if hour >= 6 && hour < 12
|
if hour >= 6 && hour < 12
|
||||||
Script.tmp_v1 = 0
|
Script.tmp_v1 = 0
|
||||||
elsif hour >= 12 && hour < 17
|
elsif hour >= 12 && hour < 17
|
||||||
|
|
@ -780,14 +780,14 @@ def watcher_tell_time
|
||||||
end
|
end
|
||||||
|
|
||||||
def plight_start_timer
|
def plight_start_timer
|
||||||
$game_oneshot.plight_timer = Time.now
|
$game_oneshot.plight_timer = 0 #Time.now
|
||||||
end
|
end
|
||||||
|
|
||||||
def plight_update_timer
|
def plight_update_timer
|
||||||
if $game_oneshot.plight_timer == nil
|
if $game_oneshot.plight_timer == nil
|
||||||
plight_start_timer
|
plight_start_timer
|
||||||
end
|
end
|
||||||
Script.tmp_v1 = ((Time.now - $game_oneshot.plight_timer) / 60).to_i
|
Script.tmp_v1 = ((0 - $game_oneshot.plight_timer) / 60).to_i #((Time.now - $game_oneshot.plight_timer) / 60).to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def activate_balcony?(ypos)
|
def activate_balcony?(ypos)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue