Merge pull request #42106 from 81Denton/SR-jitter

Adds jitter animation to strange reagent
This commit is contained in:
Jordan Brown
2019-01-02 11:11:46 -05:00
committed by GitHub
@@ -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)