Admins Can Now Always Recall Shuttles (#94486)

This commit is contained in:
san7890
2025-12-26 19:32:37 +11:00
committed by GitHub
parent d15436c9dc
commit 2c3513e998
8 changed files with 91 additions and 33 deletions
@@ -55,19 +55,20 @@
color_override = "orange",
)
/obj/docking_port/mobile/emergency/cancel(area/signalOrigin)
/// This proc will assume you have done all of the necessary checks to see if the shuttle can be recalled, it will always recall when invoked.
/// signal_origin is an optional parameter that will log where the recall signal was sent from
/obj/docking_port/mobile/emergency/cancel(area/signal_origin = null)
if(mode != SHUTTLE_CALL)
return
if(SSshuttle.emergency_no_recall)
return
invertTimer()
mode = SHUTTLE_RECALL
if(prob(70))
SSshuttle.emergency_last_call_loc = signalOrigin
SSshuttle.emergency_last_call_loc = signal_origin
else
SSshuttle.emergency_last_call_loc = null
priority_announce(
text = "The emergency shuttle has been recalled.[SSshuttle.emergency_last_call_loc ? " Recall signal traced. Results can be viewed on any communications console." : "" ]",
title = "Emergency Shuttle Recalled",