mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] Adds optional area-based definition for outdoors-ness
This commit is contained in:
@@ -40,13 +40,13 @@
|
||||
for(var/obj/machinery/power/thing in range(LIGHTNING_REDIRECT_RANGE, T))
|
||||
if(istype(thing, /obj/machinery/power/tesla_coil))
|
||||
var/turf/simulated/coil_turf = get_turf(thing)
|
||||
if(istype(coil_turf) && thing.anchored && coil_turf.outdoors)
|
||||
if(istype(coil_turf) && thing.anchored && coil_turf.is_outdoors())
|
||||
coil = thing
|
||||
break
|
||||
|
||||
if(istype(thing, /obj/machinery/power/grounding_rod))
|
||||
var/turf/simulated/rod_turf = get_turf(thing)
|
||||
if(istype(rod_turf) && thing.anchored && rod_turf.outdoors)
|
||||
if(istype(rod_turf) && thing.anchored && rod_turf.is_outdoors())
|
||||
ground = thing
|
||||
|
||||
if(coil) // Coil gets highest priority.
|
||||
|
||||
Reference in New Issue
Block a user