mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Adds a visible_message to the nuke toy when it is used
This commit is contained in:
@@ -544,6 +544,8 @@
|
||||
/obj/item/toy/nuke/attack_self(mob/user)
|
||||
if (cooldown < world.time)
|
||||
cooldown = world.time + 3000 //5 minutes
|
||||
user.visible_message("<span class='warning'>[user] presses a button on [src]</span>", "<span class='notice'>You activate [src], it plays a loud noise!</span>", "<span class='notice'>You hear the click of a button.</span>")
|
||||
sleep(5)
|
||||
icon_state = "nuketoy"
|
||||
for (var/mob/M in hearers(world.view, user)) //I'm doing this because playsound's dampening/stereo ruins the effect
|
||||
if (M.client && !M.ear_deaf)
|
||||
|
||||
Reference in New Issue
Block a user