From bfbb832034d8010027b122cae33d5cc00675a9a1 Mon Sep 17 00:00:00 2001 From: CHOMPStation2 <58959929+CHOMPStation2@users.noreply.github.com> Date: Sat, 12 Oct 2024 07:50:06 -0700 Subject: [PATCH] [MIRROR] SMES Fix (#9217) Co-authored-by: Lilly-Lira Co-authored-by: CHOMPStation2 --- code/modules/power/smes.dm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index e6febf1488..f531ede505 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -431,10 +431,18 @@ GLOBAL_LIST_EMPTY(smeses) target = 0 . = TRUE else if(target == "max") - target = output_level_max + switch(io) + if(SMES_TGUI_INPUT) + target = input_level_max + if(SMES_TGUI_OUTPUT) + target = output_level_max . = TRUE else if(adjust) - target = output_level + adjust + switch(io) + if(SMES_TGUI_INPUT) + target = input_level + adjust + if(SMES_TGUI_OUTPUT) + target = output_level + adjust . = TRUE else if(text2num(target) != null) target = text2num(target)