Adds jitter animation to strange reagent

This commit is contained in:
Denton
2018-12-28 15:06:05 +01:00
parent 66c14d4551
commit d8fd65d2d7
@@ -795,10 +795,14 @@
return
if(M.getBruteLoss() >= 100 || M.getFireLoss() >= 100 || M.has_trait(TRAIT_HUSK)) //body is too damaged to be revived
M.visible_message("<span class='warning'>[M]'s body convulses a bit, and then falls still once more.</span>")
M.do_jitter_animation(10)
return
else
M.visible_message("<span class='warning'>[M]'s body starts convulsing!</span>")
M.notify_ghost_cloning(source = M)
M.do_jitter_animation(10)
addtimer(CALLBACK(M, /mob/living/carbon.proc/do_jitter_animation, 10), 40) //jitter immediately, then again after 4 and 8 seconds
addtimer(CALLBACK(M, /mob/living/carbon.proc/do_jitter_animation, 10), 80)
sleep(100) //so the ghost has time to re-enter
M.adjustOxyLoss(-20, 0)
M.adjustToxLoss(-20, 0)