mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-30 20:14:36 +00:00
adds a new spawner that can spawn a random empty crate, a random crate with loot, or sometimes just nothing.
10 lines
361 B
Plaintext
10 lines
361 B
Plaintext
/obj/random/empty_or_lootable_crate
|
|
name = "random crate"
|
|
desc = "Spawns a random crate which may or may not have contents. Sometimes spawns nothing."
|
|
icon = 'icons/obj/storage.dmi'
|
|
icon_state = "moneybag"
|
|
spawn_nothing_percentage = 20
|
|
|
|
/obj/random/empty_or_lootable_crate/item_to_spawn()
|
|
return pick(/obj/random/crate,
|
|
/obj/random/multiple/corp_crate) |