From 6ec9e5b732b7086182ec19525514f650492b6e3c Mon Sep 17 00:00:00 2001 From: MrPerson Date: Mon, 17 Mar 2014 13:27:50 -0700 Subject: [PATCH] Safety check SMES custom input/output settings a bit. --- code/modules/power/smes.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index 247c1e61a0a..b0092ad2776 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -293,7 +293,8 @@ if("custom") var/custom = input(usr, "What rate would you like this SMES to attempt to charge at? Max is [input_level_max].") as null|num if(isnum(custom)) - input_level = custom + href_list["set_input_level"] = custom + .() if("plus") input_level += 10000 if("minus") @@ -313,7 +314,8 @@ if("custom") var/custom = input(usr, "What rate would you like this SMES to attempt to output at? Max is [output_level_max].") as null|num if(isnum(custom)) - output_level = custom + href_list["set_output_level"] = custom + .() if("plus") output_level += 10000 if("minus")