fixes exterior shields putting shields EVERYWHERE

This commit is contained in:
Screemonster
2017-10-23 04:26:44 +01:00
parent 6f27d2ae7e
commit 52f789a75b
2 changed files with 4 additions and 4 deletions

View File

@@ -141,7 +141,6 @@
idle_power_usage = 0
var/global/list/blockedturfs = list(
/turf/space,
/turf/simulated/open,
/turf/simulated/floor/outdoors,
)

View File

@@ -5,7 +5,6 @@
name = "hull shield generator"
var/global/list/blockedturfs = list(
/turf/space,
/turf/simulated/open,
/turf/simulated/floor/outdoors,
)
/obj/machinery/shield_gen/external/New()
@@ -24,6 +23,8 @@
T = locate(gen_turf.x + x_offset, gen_turf.y + y_offset, gen_turf.z)
if (is_type_in_list(T,blockedturfs))
//check neighbors of T
if (locate(/turf/simulated/) in orange(1, T))
out += T
for(var/i in orange(1, T))
if(istype(i, /turf/simulated) && !is_type_in_list(i,blockedturfs))
out += T
break
return out