mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Added griffin headgear caw ability
This commit is contained in:
@@ -344,6 +344,25 @@
|
||||
item_state = "griffinhat"
|
||||
flags = BLOCKHAIR|NODROP
|
||||
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE
|
||||
var/cooldown = 0
|
||||
action_button_name = "Caw"
|
||||
icon_action_button = "action_griffin"
|
||||
|
||||
/obj/item/clothing/head/griffin/attack_self()
|
||||
caw()
|
||||
|
||||
/obj/item/clothing/head/griffin/verb/caw()
|
||||
|
||||
set category = "Object"
|
||||
set name = "Caw"
|
||||
set src in usr
|
||||
if(!istype(usr, /mob/living)) return
|
||||
if(usr.stat) return
|
||||
|
||||
if(cooldown < world.time - 20) // A cooldown, to stop people being jerks
|
||||
playsound(src.loc, "sound/misc/caw.ogg", 50, 1)
|
||||
cooldown = world.time
|
||||
|
||||
|
||||
/obj/item/clothing/head/lordadmiralhat
|
||||
name = "Lord Admiral's Hat"
|
||||
|
||||
Reference in New Issue
Block a user