Toggle pumps/filters with AltClick & RCON Max SMES Output Button (#13385)

* Atmospherics devices (pumps, filters, etc.) can be have their power toggled on/off with Alt-Click.

* RCON control can now max the SMES output in one button-click.

* Changelog

* Got to check the SMES exist.
This commit is contained in:
mikomyazaki
2022-03-16 02:49:14 +01:00
committed by GitHub
parent 9831a0db39
commit 6f345c1383
6 changed files with 287 additions and 252 deletions
+8
View File
@@ -69,6 +69,14 @@
if(SMES)
var/outputset = input(usr, "Enter new output level (0-[SMES.output_level_max])", "SMES Input Power Control") as num
SMES.set_output(outputset)
if(href_list["smes_in_max"])
var/obj/machinery/power/smes/buildable/SMES = GetSMESByTag(href_list["smes_in_max"])
if(SMES)
SMES.set_input(SMES.input_level_max)
if(href_list["smes_out_max"])
var/obj/machinery/power/smes/buildable/SMES = GetSMESByTag(href_list["smes_out_max"])
if(SMES)
SMES.set_output(SMES.output_level_max)
if(href_list["toggle_breaker"])
var/obj/machinery/power/breakerbox/toggle = SSpower.rcon_breaker_units_by_tag[href_list["toggle_breaker"]]