Refactor random warehouse (#5430)

* Refactor random warehouse garbage

* what do you mean cargo shouldn't get vials of lightning

* this is what I get for doing this file at 2 AM
This commit is contained in:
Lohikar
2018-10-23 22:51:13 +02:00
committed by Werner
parent 4af7467a1c
commit 4aaee63a12
11 changed files with 1481 additions and 1654 deletions
@@ -685,10 +685,9 @@
icon_closed = pick(iconchoices)
icon_opened = iconchoices[icon_closed]
update_icon()
while (quantity > 0)
quantity --
for (var/i in 1 to quantity)
var/newtype = get_spawntype()
spawn_stock(newtype,src)
call(newtype)(src)
/obj/structure/closet/crate/loot/proc/get_spawntype()
var/stocktype = pickweight(spawntypes)