Tweak CIMS to ignore Syndicate Owned crystal. (#64526)

This commit is contained in:
Vire
2022-01-30 02:19:03 -07:00
committed by GitHub
parent 425f39cec9
commit 887bce1f0f
3 changed files with 10 additions and 7 deletions
@@ -47,15 +47,15 @@
for(var/supermatter in supermatters)
clear_supermatter(supermatter)
supermatters = list()
var/turf/T = get_turf(ui_host())
if(!T)
var/turf/user_turf = get_turf(ui_host())
if(!user_turf)
return
for(var/obj/machinery/power/supermatter_crystal/S in GLOB.machines)
// Delaminating, not within coverage, not on a tile.
if (!isturf(S.loc) || !(is_station_level(S.z) || is_mining_level(S.z) || S.z == T.z))
for(var/obj/machinery/power/supermatter_crystal/crystal in GLOB.machines)
//Exclude Syndicate owned, Delaminating, not within coverage, not on a tile.
if (!crystal.include_in_cims || !isturf(crystal.loc) || !(is_station_level(crystal.z) || is_mining_level(crystal.z) || crystal.z == user_turf.z))
continue
supermatters.Add(S)
RegisterSignal(S, COMSIG_PARENT_QDELETING, .proc/react_to_del)
supermatters.Add(crystal)
RegisterSignal(crystal, COMSIG_PARENT_QDELETING, .proc/react_to_del)
/datum/computer_file/program/supermatter_monitor/proc/get_status()
. = SUPERMATTER_INACTIVE