mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user