Crate Shelves (#37151)

* crate shelves

* fix layers

* fix layering and placement checks

* it kill people
This commit is contained in:
west3436
2024-09-25 08:16:14 -04:00
committed by GitHub
parent 65459b486b
commit 4d150fd98a
8 changed files with 357 additions and 0 deletions

View File

@@ -1017,6 +1017,11 @@ Thanks.
var/obj/structure/closet/C = L.loc
if(C.opened)
return //Door's open... wait, why are you in it's contents then?
if(istype(C.loc, /obj/structure/rack/crate_shelf) && istype(C,/obj/structure/closet/crate))
var/obj/structure/closet/crate/R = C
var/obj/structure/rack/crate_shelf/CS = C.loc
CS.relay_container_resist_act(src,R)
return
if(!istype(C.loc, /obj/item/delivery/large)) //Wouldn't want to interrupt escaping being wrapped over the next few trivial checks
if(istype(C, /obj/structure/closet/secure_closet))
var/obj/structure/closet/secure_closet/SC = L.loc