Adds emp act for viscerators (#5832)

* Adds emp act for viscerators

* use a timer

* Lose the target and bump the time
This commit is contained in:
Werner
2018-12-30 16:57:22 +01:00
committed by GitHub
parent dca2afd91e
commit 26f58054f9
2 changed files with 47 additions and 0 deletions
@@ -172,3 +172,13 @@
new /obj/effect/gibspawner/robot(T)
spark(T, 3, alldirs)
qdel(src)
/mob/living/simple_animal/hostile/viscerator/proc/wakeup()
stance = HOSTILE_STANCE_IDLE
/mob/living/simple_animal/hostile/viscerator/emp_act(severity)
LoseTarget()
stance = HOSTILE_STANCE_TIRED
addtimer(CALLBACK(src, .proc/wakeup), 150)
if(severity == 1.0)
apply_damage(5)