mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Admins Can Now Always Recall Shuttles (#94486)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user