prevents smuggler satchels from spawning where they shouldn't (#64346)

Stops smuggler's satchels from spawning on floor turfs which cannot conceal them, such as catwalks and glass floors.
This commit is contained in:
magatsuchi
2022-01-24 17:24:01 -06:00
committed by GitHub
parent e122a726ee
commit 69925a4634
+3 -3
View File
@@ -62,9 +62,9 @@ SUBSYSTEM_DEF(minor_mapping)
var/list/suitable = list()
for(var/z in SSmapping.levels_by_trait(ZTRAIT_STATION))
for(var/t in block(locate(1,1,z), locate(world.maxx,world.maxy,z)))
if(isfloorturf(t) && !isplatingturf(t))
suitable += t
for(var/turf/detected_turf as anything in block(locate(1,1,z), locate(world.maxx,world.maxy,z)))
if(isfloorturf(detected_turf) && detected_turf.underfloor_accessibility == UNDERFLOOR_HIDDEN)
suitable += detected_turf
return shuffle(suitable)