Merge pull request #8131 from Citadel-Station-13/kevinz000-patch-23

Shift autocall is now accurate to real time rather than game time (you will no longer have 4 hour rounds due to lag)
This commit is contained in:
deathride58
2019-03-31 21:41:37 -04:00
committed by GitHub
4 changed files with 5 additions and 2 deletions
+2
View File
@@ -54,6 +54,7 @@ SUBSYSTEM_DEF(shuttle)
var/lockdown = FALSE //disallow transit after nuke goes off
var/auto_call = 72000 //CIT CHANGE - time before in deciseconds in which the shuttle is auto called. Default is 2ish hours plus 15 for the shuttle. So total is 3.
var/realtimeofstart = 0
/datum/controller/subsystem/shuttle/Initialize(timeofday)
ordernum = rand(1, 9000)
@@ -74,6 +75,7 @@ SUBSYSTEM_DEF(shuttle)
WARNING("No /obj/docking_port/mobile/emergency/backup placed on the map!")
if(!supply)
WARNING("No /obj/docking_port/mobile/supply placed on the map!")
realtimeofstart = world.realtime
return ..()
/datum/controller/subsystem/shuttle/proc/initial_load()
+1
View File
@@ -304,6 +304,7 @@ SUBSYSTEM_DEF(ticker)
to_chat(world, "<h4>[holiday.greet()]</h4>")
PostSetup()
SSshuttle.realtimeofstart = world.realtime
return TRUE