mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[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:
@@ -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