From 20070c370c263bf5b2b62dde08cfd93f02ce4be8 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Tue, 18 Jul 2017 09:43:34 -0500 Subject: [PATCH] Adds a move delay when resisting out of cryo --- .../machinery/components/unary_devices/cryo.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index cd9eca1faa..b55ed7e84f 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -30,6 +30,8 @@ var/running_bob_anim = FALSE + var/escape_in_progress = FALSE + /obj/machinery/atmospherics/components/unary/cryo_cell/Initialize() . = ..() initialize_directions = dir @@ -251,11 +253,16 @@ return occupant /obj/machinery/atmospherics/components/unary/cryo_cell/container_resist(mob/living/user) + if(escape_in_progress) + to_chat(user, "You are already trying to exit (This will take around 30 seconds)") + return + escape_in_progress = TRUE to_chat(user, "You struggle inside the cryotube, kicking the release with your foot... (This will take around 30 seconds.)") audible_message("You hear a thump from [src].") if(do_after(user, 300)) if(occupant == user) // Check they're still here. open_machine() + escape_in_progress = FALSE /obj/machinery/atmospherics/components/unary/cryo_cell/examine(mob/user) ..()