a few more changes related to map (#18557)

* we got a thing

* use flags

* makes it betterer
This commit is contained in:
Olive
2025-09-25 04:33:12 -07:00
committed by GitHub
parent bc8aa06cfe
commit 4dd61cdc02
4 changed files with 4 additions and 2 deletions
@@ -20,7 +20,7 @@
for (var/x_offset = -field_radius; x_offset <= field_radius; x_offset++)
for (var/y_offset = -field_radius; y_offset <= field_radius; y_offset++)
T = locate(gen_turf.x + x_offset, gen_turf.y + y_offset, gen_turf.z)
if (is_type_in_list(T,GLOB.external_shield_gen_blockedturfs))
if (is_type_in_list(T,GLOB.external_shield_gen_blockedturfs) && !(T.flags & TURF_UNSHIELDABLE))
//check neighbors of T
for(var/i in orange(1, T))
if(istype(i, /turf/simulated) && !is_type_in_list(i,GLOB.external_shield_gen_blockedturfs))