Skip to content

Commit

Permalink
Fixes ody sleeper patient loc bugs (tgstation#64834)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcaneDefence committed Feb 22, 2022
1 parent cf3d101 commit 5863fe4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/modules/vehicles/mecha/equipment/tools/medical_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5863fe4

Please sign in to comment.