mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user