Fiftyspawners try to place themselves in crates if possible

Fixes https://github.com/VOREStation/VOREStation/issues/7163
This commit is contained in:
Aronai Sieyes
2020-05-04 21:21:48 -04:00
parent ad9cdaade6
commit 498b942a29

View File

@@ -9,9 +9,13 @@
/obj/fiftyspawner/Initialize()
..() //We're not returning . because we're going to ask to be deleted.
var/obj/item/stack/M = new type_to_spawn(get_turf(src))
var/turf/T = get_turf(src)
var/obj/item/stack/M = new type_to_spawn(T)
M.amount = M.max_amount //some stuff spawns with 60, we're still calling it fifty
M.update_icon() // Some stacks have different sprites depending on how full they are.
var/obj/structure/closet/C = locate() in T
if(C)
C.contents += M
return INITIALIZE_HINT_QDEL //Bye!
/obj/fiftyspawner/rods