mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Change maint crate spawners to be randomized (#62742)
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
/obj/effect/spawner/random/structure/crate
|
||||
name = "crate spawner"
|
||||
icon_state = "crate"
|
||||
icon_state = "crate_secure"
|
||||
loot = list(
|
||||
/obj/effect/spawner/random/structure/crate_loot = 745,
|
||||
/obj/structure/closet/crate/trashcart/filled = 75,
|
||||
|
||||
@@ -112,8 +112,13 @@
|
||||
|
||||
/obj/structure/closet/crate/maint
|
||||
|
||||
/obj/structure/closet/crate/maint/Initialize(mapload)
|
||||
..()
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
/obj/structure/closet/crate/maint/PopulateContents()
|
||||
. = ..()
|
||||
new /obj/effect/spawner/random/structure/crate_empty(loc)
|
||||
for(var/i in 1 to rand(2,6))
|
||||
new /obj/effect/spawner/random/maintenance(src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user