mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
More Tcomms Fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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 //
|
||||
//////////////
|
||||
|
||||
Reference in New Issue
Block a user