mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-18 03:21:13 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user