mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-17 18:19:16 +01:00
* Merge pull request #53020 from Qustinnus/fatgrowing [READY] Vatgrowing: Third time's the charm * [READY] Vatgrowing: Third time's the charm Co-authored-by: 81Denton <32391752+81Denton@users.noreply.github.com>
23 lines
930 B
Plaintext
23 lines
930 B
Plaintext
///this spawner usually spawns a boring crate, but has a chance to replace the crate with "loot crate" with a different loot table or a decorative site.
|
|
/obj/effect/loot_site_spawner
|
|
icon = 'icons/effects/landmarks_static.dmi'
|
|
icon_state = "loot_site"
|
|
///This is the loot table for the spawner. Try to make sure the weights add up to 1000, so it is easy to understand.
|
|
var/list/loot_table = list(/obj/structure/closet/crate/maint = 765,
|
|
/obj/structure/closet/crate/trashcart/filled = 80,
|
|
/obj/effect/spawner/bundle/moisture_trap = 50,
|
|
/obj/effect/spawner/bundle/hobo_squat = 35,
|
|
/obj/structure/closet/mini_fridge = 40,
|
|
/obj/effect/spawner/lootdrop/gross_decal_spawner = 30)
|
|
|
|
|
|
/obj/effect/loot_site_spawner/Initialize()
|
|
..()
|
|
if(!length(loot_table))
|
|
return INITIALIZE_HINT_QDEL
|
|
|
|
var/spawned_object = pickweight(loot_table)
|
|
new spawned_object(get_turf(src))
|
|
|
|
return INITIALIZE_HINT_QDEL
|