[MIRROR] Tweak CIMS to ignore Syndicate Owned crystal. [MDB IGNORE] (#11139)

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

* Tweak CIMS to ignore Syndicate Owned crystal.

Co-authored-by: Vire <66576896+Maurukas@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-01-30 16:28:24 +01:00
committed by GitHub
parent 922acfe99c
commit cc7a3fe4e5
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