Files
RoxyandWaterpig 7600837c59 Upstream lint fixes (#3186)
Fixes all the failing grep checks in #3157, doesn't fix the define
sanity fails because im tired

![image](https://github.com/user-attachments/assets/b40fc081-a5c9-4f46-9cf5-18ed85199435)
2025-03-05 13:23:05 +01:00

28 lines
1.0 KiB
Plaintext

/obj/docking_port/mobile/pod/register()
. = ..()
if(CONFIG_GET(number/minimum_alert_for_pods) != 0)
launch_status = NOLAUNCH
RegisterSignal(SSsecurity_level, COMSIG_SECURITY_LEVEL_CHANGED, PROC_REF(check_for_evac))
/**
* Signal handler for [COMSIG_SECURITY_LEVEL_CHANGED].
* Pulls minimum required alert level from modular config and sets pod's [var/launch_status] as [NOLAUNCH] or [UNLAUNCHED] accordingly.
* Will not do anything if pod already launched.
*/
/obj/docking_port/mobile/pod/proc/check_for_evac(datum/source, new_level)
SIGNAL_HANDLER
var/min_level = CONFIG_GET(number/minimum_alert_for_pods)
if(launch_status > UNLAUNCHED)
return
launch_status = (new_level >= min_level) ? UNLAUNCHED : NOLAUNCH
/obj/machinery/computer/shuttle/pod/emag_act(mob/user)
. = ..()
var/obj/docking_port/mobile/our_pod = SSshuttle.getShuttle(shuttleId)
our_pod.UnregisterSignal(SSsecurity_level, COMSIG_SECURITY_LEVEL_CHANGED)
if(our_pod.launch_status > UNLAUNCHED)
return
our_pod.launch_status = UNLAUNCHED