order of operations moment

This commit is contained in:
S34NW
2021-10-31 21:09:33 +00:00
parent 2d3e44511e
commit 816e478302
@@ -158,7 +158,7 @@
/obj/item/storage/secure/briefcase/syndie = 2,
/obj/item/storage/fancy/cigarettes/cigpack_syndicate = 2,
/obj/item/storage/pill_bottle/fakedeath = 2,
"" = 64 // Reduce this number if you add things above. Make sure all the numbers in the list add to 100 EXACTLY
"" = 64 // Reduce this number if you add things above. Make sure all the numbers in the list add to 100 EXACTLY
)
/obj/effect/spawner/lootdrop/crate_spawner // for ruins
@@ -223,7 +223,6 @@
)
/obj/effect/spawner/lootdrop/trade_sol/minerals/New()
. = ..()
if(loot && loot.len)
for(var/i = lootcount, i > 0, i--)
if(!loot.len)
@@ -234,6 +233,7 @@
if(lootspawn)
var/obj/item/stack/sheet/S = new lootspawn(get_turf(src))
S.amount = 25
. = ..()
qdel(src)
@@ -349,13 +349,13 @@
)
/obj/effect/spawner/lootdrop/trade_sol/vehicle/New()
. = ..()
if(!loot.len)
return
var/lootspawn = pickweight(loot)
var/obj/vehicle/V = new lootspawn(get_turf(src))
if(V.key_type)
new V.key_type(get_turf(src))
. = ..()
qdel(src)