mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
fixes exterior shields putting shields EVERYWHERE
This commit is contained in:
@@ -141,7 +141,6 @@
|
||||
idle_power_usage = 0
|
||||
var/global/list/blockedturfs = list(
|
||||
/turf/space,
|
||||
/turf/simulated/open,
|
||||
/turf/simulated/floor/outdoors,
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user