Removes spawn() from some things

Yay, refactoring.
This commit is contained in:
Jack Edge
2016-06-05 20:08:36 +01:00
parent 94a5d5bfad
commit a01b48aa48
12 changed files with 134 additions and 112 deletions
+7 -5
View File
@@ -74,11 +74,7 @@
A.audible_message("<span class='italics'>You hear a loud metallic \
grinding sound.</span>")
spawn(20)
if(removing_airlock)
playsound(src.loc, 'sound/hallucinations/growl3.ogg', 50, 1)
user.audible_message("<span class='warning'>[user] growls as \
their claws dig into the metal frame...</span>")
addtimer(src, "growl", 20, unique=FALSE, user)
if(do_after(user, delay=160, needhand=FALSE, target=A, progress=TRUE))
playsound(src.loc, 'sound/hallucinations/far_noise.ogg', 50, 1)
@@ -93,6 +89,12 @@
qdel(A)
removing_airlock = FALSE
/obj/item/zombie_hand/proc/growl(mob/user)
if(removing_airlock)
playsound(src.loc, 'sound/hallucinations/growl3.ogg', 50, 1)
user.audible_message("<span class='warning'>[user] growls as \
their claws dig into the metal frame...</span>")
/obj/item/zombie_hand/suicide_act(mob/living/carbon/user)
// Suiciding as a zombie brings someone else in to play it
user.visible_message("<span class='suicide'>[user] is lying down.</span>")