Punch stuns now knockdown instead of hard stunning. (#18191)

This commit is contained in:
KittyNoodle
2022-07-05 16:10:58 +02:00
committed by GitHub
parent 179b75f3a7
commit a1cc619421
@@ -504,9 +504,9 @@
target.visible_message("<span class='danger'>[user] [pick(attack.attack_verb)]ed [target]!</span>")
target.apply_damage(damage, BRUTE, affecting, armor_block, sharp = attack.sharp) //moving this back here means Armalis are going to knock you down 70% of the time, but they're pure adminbus anyway.
if((target.stat != DEAD) && damage >= user.dna.species.punchstunthreshold)
target.visible_message("<span class='danger'>[user] has weakened [target]!</span>", \
"<span class='userdanger'>[user] has weakened [target]!</span>")
target.apply_effect(8 SECONDS, WEAKEN, armor_block)
target.visible_message("<span class='danger'>[user] has knocked down [target]!</span>", \
"<span class='userdanger'>[user] has knocked down [target]!</span>")
target.KnockDown(4 SECONDS)
target.forcesay(GLOB.hit_appends)
else if(IS_HORIZONTAL(target))
target.forcesay(GLOB.hit_appends)