Skip to content

Commit

Permalink
Fixes medical cryo tubes deleting occupants when destroyed. (#6405)
Browse files Browse the repository at this point in the history
# 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
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
fix: Medical cryo tubes no longer delete their occupant when destroyed.
/:cl:

---------

Co-authored-by: harryob <[email protected]>
Co-authored-by: TheGamerdk <[email protected]>
  • Loading branch information
3 people committed Jun 16, 2024
1 parent fa8cd64 commit 484b313
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/game/machinery/cryo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 484b313

Please sign in to comment.