Skip to content

Commit

Permalink
adds power tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed May 1, 2024
1 parent becfc59 commit f34b3d3
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
. = ..()
var/list/cust = list()
cust["processing_machines"] = length(processing)
cust["total_power_used"] = 0
cust["total_excess_power"] = 0
cust["total_power"] = 0
for(var/datum/powernet/powernet in powernets)
cust["total_excess_power"] += powernet.netexcess
cust["total_power_used"] += powernet.load
cust["total_power"] += powernet.avail

.["custom"] = cust

/datum/controller/subsystem/mobs/get_metrics()
Expand Down

0 comments on commit f34b3d3

Please sign in to comment.