More Tcomms Fixes

This commit is contained in:
AffectedArc07
2020-07-13 11:26:17 +01:00
parent ee957870bb
commit d9d97b6cc6
3 changed files with 16 additions and 11 deletions
@@ -411,17 +411,9 @@
/obj/structure/chair,
/turf/simulated/floor/plating/airless,
/area/ruin/tcommsat)
"bu" = (
/obj/machinery/door/airlock/maintenance_hatch,
/turf/simulated/floor/plating/airless{
icon_state = "dark"
},
/area/ruin/tcommsat)
"bv" = (
/obj/machinery/door/airlock/hatch,
/turf/simulated/floor/plating/airless{
icon_state = "dark"
},
/turf/simulated/floor/plating/airless,
/area/ruin/tcommsat)
"bw" = (
/obj/structure/window/reinforced{
@@ -2709,7 +2701,7 @@ aD
aC
aC
ai
bu
bC
ai
ak
ak
+4 -1
View File
@@ -57,6 +57,9 @@
* * zlevel - The input z level to test
*/
/obj/machinery/tcomms/core/proc/zlevel_reachable(zlevel)
// Nothing is reachable if the core is offline, unpowered, or ion'd
if(!active || (stat & NOPOWER) || ion)
return FALSE
if(zlevel in reachable_zlevels)
return TRUE
else
@@ -113,7 +116,7 @@
// Add all the linked relays in
for(var/obj/machinery/tcomms/relay/R in linked_relays)
// Only if the relay is active
if(R.active)
if(R.active && !(R.stat & NOPOWER))
reachable_zlevels |= R.loc.z
+10
View File
@@ -76,6 +76,16 @@
linked_core = null
linked = FALSE
/**
* Power Change Handler
*
* Proc which ensures the host core has its zlevels updated (icons are updated by parent call)
*/
/obj/machinery/tcomms/relay/power_change()
..()
if(linked_core)
linked_core.refresh_zlevels()
//////////////
// UI STUFF //
//////////////