Adds Cryo QoL with hotkeys

Ctrl click to swap power, Alt click to close/open machine. This is how you do a "QoL" PR.
This commit is contained in:
Poojawa
2019-10-03 23:14:46 -05:00
parent ccf49f8d21
commit 9c4a808e7e
@@ -394,6 +394,21 @@
. = TRUE
update_icon()
/obj/machinery/atmospherics/components/unary/cryo_cell/CtrlClick(mob/user)
if(user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK) && !state_open)
on = !on
update_icon()
return ..()
/obj/machinery/atmospherics/components/unary/cryo_cell/AltClick(mob/user)
if(user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK))
if(state_open)
close_machine()
else
open_machine()
update_icon()
return ..()
/obj/machinery/atmospherics/components/unary/cryo_cell/update_remote_sight(mob/living/user)
return // we don't see the pipe network while inside cryo.