Add crate shelves (#21493)

Ports https://github.com/shiptest-ss13/Shiptest/pull/2374
The warehous has been redesigned to incorporate new shelves that can
each carry up to 3 crates. The warehouse now spawns with the crates
already on the shelves and the related code has been updated to account
for this and still spawn things inside of them.
The back room in the warehouse also lost its camera, to give a chance
for antags and other shenanigans to occur back there.

<img width="595" height="971" alt="image"
src="https://github.com/user-attachments/assets/3cf8bd17-e91b-4d32-9ae8-5e461eceee42"
/>
<img width="282" height="556" alt="image"
src="https://github.com/user-attachments/assets/100f02b0-9165-4c35-a24b-f20d9bdda30e"
/>
This commit is contained in:
Casper3667
2025-11-03 09:09:08 +01:00
committed by GitHub
parent 1098d40e4a
commit ca66627f32
9 changed files with 459 additions and 226 deletions
+5
View File
@@ -120,6 +120,11 @@ GLOBAL_LIST_EMPTY(random_stock_large)
var/obj/structure/table/B = A
if(!B.no_cargo)
tables |= B
else if(istype(A, /obj/structure/crate_shelf))
var/obj/structure/crate_shelf/shelf = A
for(var/obj/I in shelf.shelf_contents)
if (istype(I, /obj/structure/closet/crate))
containers |= I
/datum/cargospawner/proc/start()
if (!SSatlas.current_map.warehouse_basearea || !length(warehouseturfs))