From 484b313870d46e1a23ee107dd915ee1a3ddc7d69 Mon Sep 17 00:00:00 2001 From: forest2001 <41653574+realforest2001@users.noreply.github.com> Date: Sun, 16 Jun 2024 13:07:01 +0100 Subject: [PATCH] Fixes medical cryo tubes deleting occupants when destroyed. (#6405) # About the pull request As title. # Explain why it's good for the game People being sent to the void is not a good thing. # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: Medical cryo tubes no longer delete their occupant when destroyed. /:cl: --------- Co-authored-by: harryob <55142896+harryob@users.noreply.github.com> Co-authored-by: TheGamerdk <5618080+TheGamerdk@users.noreply.github.com> --- code/game/machinery/cryo.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index c2aac2cf9e75..61972f2f6c46 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -193,6 +193,11 @@ var/is_on = on && operable() icon_state = "[icon_state]-[is_on ? "on" : "off"]-[occupant ? "occupied" : "empty"]" +/obj/structure/machinery/cryo_cell/Destroy() + if(occupant) + go_out() + . = ..() + /obj/structure/machinery/cryo_cell/proc/process_occupant() if(!occupant) return