mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user