Merge conflict fix
This commit is contained in:
@@ -125,15 +125,12 @@
|
||||
to_chat(user, "<span class='notice'>You start building the power terminal...</span>")
|
||||
playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
|
||||
|
||||
if(do_after(user, 20, target = src) && C.get_amount() >= 10)
|
||||
if(C.get_amount() < 10 || !C)
|
||||
return
|
||||
if(C.use_tool(src, user, 20, 10))
|
||||
var/obj/structure/cable/N = T.get_cable_node() //get the connecting node cable, if there's one
|
||||
if (prob(50) && electrocute_mob(usr, N, N, 1, TRUE)) //animate the electrocution if uncautious and unlucky
|
||||
do_sparks(5, TRUE, src)
|
||||
return
|
||||
|
||||
C.use(10)
|
||||
user.visible_message(\
|
||||
"[user.name] has built a power terminal.",\
|
||||
"<span class='notice'>You build the power terminal.</span>")
|
||||
@@ -220,7 +217,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 +369,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 +391,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