mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
fixes exterior shields putting shields EVERYWHERE
This commit is contained in:
@@ -141,7 +141,6 @@
|
|||||||
idle_power_usage = 0
|
idle_power_usage = 0
|
||||||
var/global/list/blockedturfs = list(
|
var/global/list/blockedturfs = list(
|
||||||
/turf/space,
|
/turf/space,
|
||||||
/turf/simulated/open,
|
|
||||||
/turf/simulated/floor/outdoors,
|
/turf/simulated/floor/outdoors,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
name = "hull shield generator"
|
name = "hull shield generator"
|
||||||
var/global/list/blockedturfs = list(
|
var/global/list/blockedturfs = list(
|
||||||
/turf/space,
|
/turf/space,
|
||||||
/turf/simulated/open,
|
|
||||||
/turf/simulated/floor/outdoors,
|
/turf/simulated/floor/outdoors,
|
||||||
)
|
)
|
||||||
/obj/machinery/shield_gen/external/New()
|
/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)
|
T = locate(gen_turf.x + x_offset, gen_turf.y + y_offset, gen_turf.z)
|
||||||
if (is_type_in_list(T,blockedturfs))
|
if (is_type_in_list(T,blockedturfs))
|
||||||
//check neighbors of T
|
//check neighbors of T
|
||||||
if (locate(/turf/simulated/) in orange(1, T))
|
for(var/i in orange(1, T))
|
||||||
|
if(istype(i, /turf/simulated) && !is_type_in_list(i,blockedturfs))
|
||||||
out += T
|
out += T
|
||||||
|
break
|
||||||
return out
|
return out
|
||||||
Reference in New Issue
Block a user