Merge pull request #8765 from Ghommie/Ghommie-cit91
Merging the end-of-shift and its shuttle autocall announcements into one.
This commit is contained in:
@@ -199,7 +199,7 @@
|
|||||||
|
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|
||||||
/obj/docking_port/mobile/emergency/request(obj/docking_port/stationary/S, area/signalOrigin, reason, redAlert, set_coefficient=null)
|
/obj/docking_port/mobile/emergency/request(obj/docking_port/stationary/S, area/signalOrigin, reason, redAlert, set_coefficient=null, silent = FALSE)
|
||||||
if(!isnum(set_coefficient))
|
if(!isnum(set_coefficient))
|
||||||
var/security_num = seclevel2num(get_security_level())
|
var/security_num = seclevel2num(get_security_level())
|
||||||
switch(security_num)
|
switch(security_num)
|
||||||
@@ -228,7 +228,8 @@
|
|||||||
else
|
else
|
||||||
SSshuttle.emergencyLastCallLoc = null
|
SSshuttle.emergencyLastCallLoc = null
|
||||||
|
|
||||||
priority_announce("The emergency shuttle has been called. [redAlert ? "Red Alert state confirmed: Dispatching priority shuttle. " : "" ]It will arrive in [timeLeft(600)] minutes.[reason][SSshuttle.emergencyLastCallLoc ? "\n\nCall signal traced. Results can be viewed on any communications console." : "" ]", null, 'sound/ai/shuttlecalled.ogg', "Priority")
|
if(!silent)
|
||||||
|
priority_announce("The emergency shuttle has been called. [redAlert ? "Red Alert state confirmed: Dispatching priority shuttle. " : "" ]It will arrive in [timeLeft(600)] minutes.[reason][SSshuttle.emergencyLastCallLoc ? "\n\nCall signal traced. Results can be viewed on any communications console." : "" ]", null, 'sound/ai/shuttlecalled.ogg', "Priority")
|
||||||
|
|
||||||
/obj/docking_port/mobile/emergency/cancel(area/signalOrigin)
|
/obj/docking_port/mobile/emergency/cancel(area/signalOrigin)
|
||||||
if(mode != SHUTTLE_CALL)
|
if(mode != SHUTTLE_CALL)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
/datum/controller/subsystem/shuttle/proc/autoEnd() //CIT CHANGE - allows shift to end after 3 hours has passed.
|
/datum/controller/subsystem/shuttle/proc/autoEnd() //CIT CHANGE - allows shift to end after 2 hours have passed.
|
||||||
if((world.realtime - SSshuttle.realtimeofstart) > auto_call && EMERGENCY_IDLE_OR_RECALLED) //3 hours
|
if((world.realtime - SSshuttle.realtimeofstart) > auto_call && EMERGENCY_IDLE_OR_RECALLED) //2 hours
|
||||||
SSshuttle.emergency.request()
|
SSshuttle.emergency.request(silent = TRUE)
|
||||||
priority_announce("The shift has come to an end and the shuttle called.")
|
priority_announce("The shift has come to an end and the shuttle called. [seclevel2num(get_security_level()) == SEC_LEVEL_RED ? "Red Alert state confirmed: Dispatching priority shuttle. " : "" ]It will arrive in [emergency.timeLeft(600)] minutes.", null, 'sound/ai/shuttlecalled.ogg', "Priority")
|
||||||
log_game("Round time limit reached. Shuttle has been auto-called.")
|
log_game("Round time limit reached. Shuttle has been auto-called.")
|
||||||
message_admins("Round time limit reached. Shuttle called.")
|
message_admins("Round time limit reached. Shuttle called.")
|
||||||
|
emergencyNoRecall = TRUE
|
||||||
|
|||||||
Reference in New Issue
Block a user