Adds a visible_message to the nuke toy when it is used

This commit is contained in:
JJRcop
2014-01-11 12:40:53 -05:00
committed by ZomgPonies
parent e235bc94e6
commit 7b678241e4
+2
View File
@@ -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)