mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-26 17:11:52 +00:00
Merge pull request #3105 from MrPerson/gias_issue
Safety check SMES custom input/output settings a bit.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user