[MIRROR] prevents smuggler satchels from spawning on catwalks [MDB IGNORE] (#10974)

* 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.

* prevents smuggler satchels from spawning on catwalks

Co-authored-by: magatsuchi <88991542+magatsuchi@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-01-25 00:57:02 +00:00
committed by GitHub
co-authored by magatsuchi
parent fc56b32126
commit e57dc7ec06
+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)