Fixes ody sleeper patient loc bugs (#64834)

This commit is contained in:
ArcaneDefence
2022-02-21 23:41:31 -05:00
committed by GitHub
parent cf3d101442
commit 5863fe4072
@@ -236,6 +236,12 @@
var/mob/living/carbon/M = patient
if(!M)
return
if(M.loc != src)
to_chat(chassis.occupants, "[icon2html(src, chassis.occupants)][span_notice("[patient] no longer detected. Life support functions diabled.")]")
log_message("[patient] no longer detected - Life support functions disabled.", LOG_MECHA)
STOP_PROCESSING(SSobj, src)
patient = null
update_equip_info()
if(M.health > 0)
M.adjustOxyLoss(-0.5 * delta_time)
M.AdjustStun(-40 * delta_time)