From fcee6bf2b522ae5612639dda1a85edceba10009a Mon Sep 17 00:00:00 2001 From: Fikou Date: Mon, 26 Apr 2021 10:06:45 +0200 Subject: [PATCH] cryo cells now render mobs under instead of over them (#58633) this should work in the same way the experiscanner does, if youre on the same tile as the cryopod, youre above it, if youre north of it you render below --- .../machinery/components/unary_devices/cryo.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index f4fb746422b..014ea77d3e5 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -16,7 +16,7 @@ // Must be tall, otherwise the filter will consider this as a 32x32 tile // and will crop the head off. icon_state = "mask_bg" - layer = ABOVE_WINDOW_LAYER + 0.01 + layer = MOB_LAYER + 0.01 mouse_opacity = MOUSE_OPACITY_TRANSPARENT pixel_y = 22 appearance_flags = KEEP_TOGETHER @@ -70,7 +70,7 @@ density = TRUE max_integrity = 350 armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 100, BOMB = 0, BIO = 100, RAD = 100, FIRE = 30, ACID = 30) - layer = ABOVE_WINDOW_LAYER + layer = MOB_LAYER state_open = FALSE circuit = /obj/item/circuitboard/machine/cryo_tube pipe_flags = PIPING_ONE_PER_TURF | PIPING_DEFAULT_LAYER_ONLY @@ -194,8 +194,8 @@ . = ..() plane = initial(plane) -GLOBAL_VAR_INIT(cryo_overlay_cover_on, mutable_appearance('icons/obj/cryogenics.dmi', "cover-on", layer = ABOVE_WINDOW_LAYER + 0.02)) -GLOBAL_VAR_INIT(cryo_overlay_cover_off, mutable_appearance('icons/obj/cryogenics.dmi', "cover-off", layer = ABOVE_WINDOW_LAYER + 0.02)) +GLOBAL_VAR_INIT(cryo_overlay_cover_on, mutable_appearance('icons/obj/cryogenics.dmi', "cover-on", layer = MOB_LAYER + 0.02)) +GLOBAL_VAR_INIT(cryo_overlay_cover_off, mutable_appearance('icons/obj/cryogenics.dmi', "cover-off", layer = MOB_LAYER + 0.02)) /obj/machinery/atmospherics/components/unary/cryo_cell/update_overlays() . = ..()