Makes xenomorph stuns factor in the target's melee armor instead of always stunning for a full 5 seconds.

This commit is contained in:
DZD
2015-11-06 20:44:24 -05:00
parent 59cc99b0f5
commit 66974661b8
2 changed files with 3 additions and 2 deletions
@@ -96,7 +96,7 @@
if(istype(A, /mob/living))
var/mob/living/L = A
L.visible_message("<span class ='danger'>[src] pounces on [L]!</span>", "<span class ='userdanger'>[src] pounces on you!</span>")
L.Weaken(5)
apply_effect(5, WEAKEN, run_armor_check("chest", "melee"))
sleep(2)//Runtime prevention (infinite bump() calls on hulks)
step_towards(src,L)
@@ -34,8 +34,9 @@
M.do_attack_animation(src)
var/randn = rand(1, 100)
if (randn <= 80)
var/obj/item/organ/external/affecting = get_organ(ran_zone(M.zone_sel.selecting))
playsound(loc, 'sound/weapons/pierce.ogg', 25, 1, -1)
Weaken(5)
apply_effect(5, WEAKEN, run_armor_check(affecting, "melee"))
for(var/mob/O in viewers(src, null))
if ((O.client && !( O.blinded )))
O.show_message(text("\red <B>[] has tackled down []!</B>", M, src), 1)