this works

This commit is contained in:
SteelSlayer
2020-05-06 02:03:15 -05:00
parent a60bfc0fcc
commit a3aafa4ce4
+1 -2
View File
@@ -959,8 +959,7 @@
return
// Do not allow the staff to recharge if it's more than 3 tiles away from the robe. If get_dist returns 0, the robe and the staff in the same tile.
var/staff_dist = get_dist(H, linked_staff)
if(staff_dist > 3 || staff_dist < 0)
if(!(get_dist(H, linked_staff) <= 3))
if(prob(10)) //10% chance per process should avoid being too spammy, can tweak if it ends up still being too frequent.
to_chat(H, "<span class='warning'>Your staff is unable to charge at this range. Get closer!</span>")
return