listed autoEnd as a var known as GameTimer
This commit is contained in:
@@ -47,6 +47,8 @@ var/datum/controller/subsystem/shuttle/SSshuttle
|
||||
|
||||
var/lockdown = FALSE //disallow transit after nuke goes off
|
||||
|
||||
var/GameTime = 72000 //time before in deciseconds in which the shuttle is auto called. Default is 2 hours.
|
||||
|
||||
/datum/controller/subsystem/shuttle/New()
|
||||
NEW_SS_GLOBAL(SSshuttle)
|
||||
|
||||
@@ -352,7 +354,8 @@ var/datum/controller/subsystem/shuttle/SSshuttle
|
||||
transit_requesters += M
|
||||
|
||||
/datum/controller/subsystem/shuttle/proc/autoEnd()
|
||||
if(world.time > 72000 && EMERGENCY_IDLE_OR_RECALLED) //3 hours
|
||||
world << world.time
|
||||
if(world.time > GameTime && EMERGENCY_IDLE_OR_RECALLED) //3 hours
|
||||
SSshuttle.emergency.request(null, 1.5)
|
||||
priority_announce("The shift has come to an end and the shuttle called.")
|
||||
log_game("Round time limit reached. Shuttle has been auto-called.")
|
||||
|
||||
Reference in New Issue
Block a user