Resolve shower curtain/steam layering issue

Reported in https://github.com/VOREStation/VOREStation/issues/3594, curtains and steam layer under mobs due to the plane update. This fixes that, and causes them to layer correctly.
This commit is contained in:
Arokha Sieyes
2018-05-12 15:29:17 -04:00
parent 862f1eff44
commit 4706bf1801
3 changed files with 10 additions and 11 deletions
+8 -7
View File
@@ -2,13 +2,15 @@
name = "curtain"
icon = 'icons/obj/curtain.dmi'
icon_state = "closed"
layer = SHOWER_OPEN_LAYER
plane = MOB_PLANE
layer = ABOVE_MOB_LAYER
opacity = 1
density = 0
/obj/structure/curtain/open
icon_state = "open"
layer = SHOWER_CLOSED_LAYER
plane = OBJ_PLANE
layer = OBJ_LAYER
opacity = 0
/obj/structure/curtain/bullet_act(obj/item/projectile/P, def_zone)
@@ -27,10 +29,12 @@
set_opacity(!opacity)
if(opacity)
icon_state = "closed"
layer = SHOWER_CLOSED_LAYER
plane = MOB_PLANE
layer = ABOVE_MOB_LAYER
else
icon_state = "open"
layer = SHOWER_OPEN_LAYER
plane = OBJ_PLANE
layer = OBJ_LAYER
/obj/structure/curtain/attackby(obj/item/P, mob/user)
if(istype(P, /obj/item/weapon/wirecutters))
@@ -76,6 +80,3 @@
/obj/structure/curtain/open/shower/security
color = "#AA0000"
#undef SHOWER_OPEN_LAYER
#undef SHOWER_CLOSED_LAYER
+2 -1
View File
@@ -142,7 +142,8 @@
name = "mist"
icon = 'icons/obj/watercloset.dmi'
icon_state = "mist"
layer = MOB_LAYER + 1
plane = MOB_PLANE
layer = ABOVE_MOB_LAYER
anchored = 1
mouse_opacity = 0