check total damage instead of damage type (#25818)

This commit is contained in:
larentoun
2024-06-06 23:13:35 +03:00
committed by GitHub
parent 7ab9807b68
commit 27f63632d6
@@ -317,9 +317,9 @@
//If limb took enough damage, try to cut or tear it off
if(owner)
if(sharp && !(limb_flags & CANNOT_DISMEMBER))
if(limb_brute >= max_damage && prob(original_brute / 2))
if(limb_brute + limb_burn >= max_damage && prob(original_brute / 2))
droplimb(0, DROPLIMB_SHARP)
if(limb_burn >= max_damage && prob(original_burn / 2))
if(limb_brute + limb_burn >= max_damage && prob(original_burn / 2))
droplimb(0, DROPLIMB_BURN)
if(owner_old)