Armor damage reduction per value

Status
Not open for further replies.

Ofel

Level 12
If I have a structure that has 5 armor point value (Fortified type), and a unit that has 20 attack damage point (Hero type), the armor reduction of Hero against Fortified is 0.5.
So the in-game damage result is 7.692.
What is the formula to get the result damage?

anufis

Level 5
20 * 0.5 / (1 + 0.06 * 5) where 20 is your base damage and 5 is armor point, and 0.5 is hero->fortified modifier.
Basic formula is resultDamage = damage / (1 + 0.06 * armor)

Armor modifier (0.06) can be changed in map constants.

~El

Level 17

The final damage (I think) is:

damageDealt = damageValue * (1 - armorTypeReduction) * (1 - armorValueReduction)

damageDealt = 20 * 0.5 * (1 - (5 * 0.06) / (1 + 5 * 0.06)) = 20 * 0.5 * (1 - 0.2307) = 10 * (0.7693) = 0.7693

Sans some rounding error, this is more or less the precise value you're getting.

EDIT: Keep in mind that there are also some other abilities at play here. There's damage block abilities and damage reduce abilities, which can also further reduce damage, and the formula accounting for those gets even more complicated.

Ofel

Level 12
20 * 0.5 / (1 + 0.06 * 5) where 20 is your base damage and 5 is armor point, and 0.5 is hero->fortified modifier.
Basic formula is resultDamage = damage / (1 + 0.06 * armor)

Armor modifier (0.06) can be changed in map constants.
View attachment 312544

The final damage (I think) is:

damageDealt = damageValue * (1 - armorTypeReduction) * (1 - armorValueReduction)

damageDealt = 20 * 0.5 * (1 - (5 * 0.06) / (1 + 5 * 0.06)) = 20 * 0.5 * (1 - 0.2307) = 10 * (0.7693) = 0.7693

Sans some rounding error, this is more or less the precise value you're getting.

EDIT: Keep in mind that there are also some other abilities at play here. There's damage block abilities and damage reduce abilities, which can also further reduce damage, and the formula accounting for those gets even more complicated.

Thank you both of you for sharing this formula. It worked just like what I planned to make.

Status
Not open for further replies.

Replies
2
Views
718
Replies
4
Views
4K
Replies
4
Views
1K
Replies
3
Views
1K
Replies
8
Views
3K