Fixes SMES hacking (#19549)

~~In preparation for my grand political strategy to get SMES hacking
wires added to the aurora wiki, I made sure they were working.~~

It's on the wiki now so you have to merge this it's canon 🫡 

Changes:
* The RCON wire in a SMES now actually disconnects a SMES from RCON
(before it only prevented AI control).
* When the input wire is cut in a SMES, it will now correctly report
that the SMES is not charging on the UI.
* The Failsafe and Grounding wires of a SMES now correctly trigger the
red light when only one is cut, instead of both needing to be triggered.

---------

Signed-off-by: FlamingLily <80451102+FlamingLily@users.noreply.github.com>
This commit is contained in:
FlamingLily
2024-07-03 14:01:44 +10:00
committed by GitHub
parent 345d4661c0
commit 6a9101e763
4 changed files with 77 additions and 14 deletions
@@ -21,17 +21,18 @@
var/list/smeslist = list()
for(var/obj/machinery/power/smes/buildable/SMES in SSmachinery.rcon_smes_units)
smeslist.Add(list(list(
"charge" = round(SMES.Percentage()),
"input_set" = SMES.input_attempt,
"input_val" = round(SMES.input_level),
"output_set" = SMES.output_attempt,
"output_val" = round(SMES.output_level),
"input_level_max" = SMES.input_level_max,
"output_level_max" = SMES.output_level_max,
"output_load" = round(SMES.output_used),
"RCON_tag" = SMES.RCon_tag
)))
if(SMES.RCon)
smeslist.Add(list(list(
"charge" = round(SMES.Percentage()),
"input_set" = SMES.input_attempt,
"input_val" = round(SMES.input_level),
"output_set" = SMES.output_attempt,
"output_val" = round(SMES.output_level),
"input_level_max" = SMES.input_level_max,
"output_level_max" = SMES.output_level_max,
"output_load" = round(SMES.output_used),
"RCON_tag" = SMES.RCon_tag
)))
data["smes_info"] = smeslist
// BREAKER DATA (simplified view)