Putnams suggestion

Makes use() a if, as to use it as a further sanity check

Co-Authored-By: Putnam3145 <putnam3145@gmail.com>
This commit is contained in:
Arturlang
2020-04-08 18:24:14 +03:00
committed by GitHub
parent c9ab705c80
commit cdd2f55cac

View File

@@ -564,7 +564,8 @@ By design, d1 is the smallest direction and d2 is the highest
return
if(!check_cable_amount())
return
use(15)
if(!use(15))
to_chat(user, "<span class='warning'>You need at least 15 lengths of cable!</span>
var/obj/item/restraints/handcuffs/cable/result = new(get_turf(user))
user.put_in_hands(result)
result.color = color
@@ -857,4 +858,4 @@ By design, d1 is the smallest direction and d2 is the highest
. = ..()
var/list/cable_colors = GLOB.cable_colors
color = pick(cable_colors)