mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
Migrates /obj/item/clothing to the New Attack Chain (#31421)
* the beginning of my torment * This was a very small piece of torment * God agghhghhhh the suffering * pain and suffering and destruction * Update bot_construction.dm * Update heretic_necks.dm * Update heretic_armor.dm * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> * Apply suggestion from @DGamerL Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Signed-off-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -50,9 +50,13 @@
|
||||
"Grey" = 'icons/mob/clothing/species/grey/mask.dmi'
|
||||
)
|
||||
|
||||
/obj/item/clothing/mask/whistle/attack_self__legacy__attackchain(mob/user)
|
||||
/obj/item/clothing/mask/whistle/activate_self(mob/user)
|
||||
if(..())
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(!COOLDOWN_FINISHED(src, whistle_cooldown))
|
||||
return
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
playsound(src, pick('sound/items/whistle1.ogg', 'sound/items/whistle2.ogg', 'sound/items/whistle3.ogg'), 25)
|
||||
COOLDOWN_START(src, whistle_cooldown, 4 SECONDS)
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
Reference in New Issue
Block a user