mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-04 14:33:10 +00:00
Fix loot crate runtime + bad mapped-in crate paths (#13747)
This commit is contained in:
@@ -537,8 +537,10 @@
|
||||
"3" = (100 - ((STOCK_RARE_PROB * rarity) + (STOCK_UNCOMMON_PROB * rarity)))
|
||||
)
|
||||
|
||||
var/icontype = pick(typesof(/obj/structure/closet/crate) - typesof(/obj/structure/closet/crate/secure/gear_loadout))
|
||||
var/obj/structure/closet/crate/C = new icontype(src.loc)
|
||||
var/list/valid_loot = typesof(/obj/structure/closet/crate) - typesof(/obj/structure/closet/crate/secure/gear_loadout)
|
||||
valid_loot -= typesof(/obj/structure/closet/crate/loot)
|
||||
var/icontype = pick(valid_loot)
|
||||
var/obj/structure/closet/crate/C = new icontype(get_turf(src))
|
||||
|
||||
C.name = "unusual container"
|
||||
C.desc = "A mysterious container of unknown origins. What mysteries lie within?"
|
||||
|
||||
Reference in New Issue
Block a user