Backward 512 compatibility removal.
This commit is contained in:
@@ -220,7 +220,7 @@
|
||||
. += "smes-og[clevel]"
|
||||
|
||||
/obj/machinery/power/smes/proc/chargedisplay()
|
||||
return CLAMP(round(5.5*charge/capacity),0,5)
|
||||
return clamp(round(5.5*charge/capacity),0,5)
|
||||
|
||||
/obj/machinery/power/smes/process()
|
||||
if(stat & BROKEN)
|
||||
@@ -372,7 +372,7 @@
|
||||
target = text2num(target)
|
||||
. = TRUE
|
||||
if(.)
|
||||
input_level = CLAMP(target, 0, input_level_max)
|
||||
input_level = clamp(target, 0, input_level_max)
|
||||
log_smes(usr)
|
||||
if("output")
|
||||
var/target = params["target"]
|
||||
@@ -394,7 +394,7 @@
|
||||
target = text2num(target)
|
||||
. = TRUE
|
||||
if(.)
|
||||
output_level = CLAMP(target, 0, output_level_max)
|
||||
output_level = clamp(target, 0, output_level_max)
|
||||
log_smes(usr)
|
||||
|
||||
/obj/machinery/power/smes/proc/log_smes(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user