mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-05 23:12:26 +00:00
Add cooldown to pen clicks
Fixes https://github.com/VOREStation/VOREStation/issues/7000
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
drop_sound = 'sound/items/drop/accessory.ogg'
|
||||
|
||||
/obj/item/weapon/pen/attack_self(var/mob/user)
|
||||
if(!user.checkClickCooldown())
|
||||
return
|
||||
user.setClickCooldown(1 SECOND)
|
||||
to_chat(user, "<span class='notice'>Click.</span>")
|
||||
playsound(loc, 'sound/items/penclick.ogg', 50, 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user