VS: Get your clicks out of my movement code

This commit is contained in:
Aronai Sieyes
2020-04-30 15:41:26 -04:00
parent 99fa98f437
commit 1688e16d88
6 changed files with 11 additions and 11 deletions
@@ -26,12 +26,12 @@
/obj/item/weapon/holder/micro/attack_self(mob/living/carbon/user) //reworked so it works w/ nonhumans
for(var/L in contents)
if(ishuman(L) && user.canClick()) // These canClicks() are repeated here to make sure users can't avoid the click delay
if(ishuman(L) && user.checkClickCooldown()) // These canClicks() are repeated here to make sure users can't avoid the click delay
var/mob/living/carbon/human/H = L
H.help_shake_act(user)
user.setClickCooldown(user.get_attack_speed()) //uses the same cooldown as regular attack_hand
return
if(isanimal(L) && user.canClick())
if(isanimal(L) && user.checkClickCooldown())
var/mob/living/simple_mob/S = L
user.visible_message("<span class='notice'>[user] [S.response_help] \the [S].</span>")
user.setClickCooldown(user.get_attack_speed())