Saturday, April 17, 2010

Battle Damage Calculation

There are 2 types of attack mode:
- Destroy Mode
- Plunder Mode

During any battle, ONLY the attack power of attacker and defense power of defender impact the results of battle.

Destroy mode
This mode will results in either the attacker or defender force to be totally eliminated.

Damage Calculation:
If Attacker Win
Defender Troops Eliminated, meaning left 0%
Attacker troops lose = (Attack power/Defense power) ^ 1.5

Defense power is a mixture of Infantry and Calvary defense base on attacking units.

Example:
** Calculation below is base on no attack or defense bonus (like Wall, Heroes skill, ranking, unit level..etc)

Attacker: 200 Glaiveman (Attack = 60)+ 200 Lancer (Attack = 55)
Defender: 100 swordman (Inf Def 35 Cal Def 50) + 100 Heavy Infantry (Inf Def 65 + Cal Def 35 )

Total Attacking power = 200 x 60 + 200 x 55 = 23000
Total Inf Def = 100 x 35 + 100 x 65 = 10000
Total Cal Def = 100 x 50 + 100 x 35 = 8500

Since the attacker consist of 200 Infantry and 200 Calvary
Effective Def = [(200 Inf/400 Total Att Units) x 10000 Inf Def] + [(100 Cal/400 Total Att Units)x8500)] = 9250

Attacker 23000 > Def 9250 so attacker win
Defender lose 100 swordsman 100 heavy Infantry (ALL)
Attacker lose (9250/23000)^1.5 = 25.5%
Attacker lose 51 Glaivemen 51 Lancer

What if you send 100 Glaiveman + 100 Lancer in the beginning.
Attack power = 11500 > 9250 (Attacker still win)
Defender stilll lose all units
Attacker lose (9250/11500)^1.5 = 72.1%
Attacker lose 72 Glaivemen 72 lancer
Attacker Casualties will be increased


What if you send 400 Glaiveman + 400 Lancer in the beginning.
Attack power = 46000 > 9250 (Attacker still win)
Defender still lose all units
Attacker lose (9250/46000)^1.5 = 9.0%
Attacker lose 36 Galivemen 36 lancer
Attacker Casualties will be reduced

As you can see, always attack with more troops to reduce your casualties.

Plunder Mode
The only difference with destroy mode is that it does not eliminate loser forces. This mode minimize the casualties from a battle.

To estimate the battle losses first calculate base on destroy mode. Take the example above, casualties for winning side (attacker) is 25.5 % under destroy mode.

Now under plunder mode with the same attack units.

Winner casualties = 25.5/(100 + 25.5) = 20.3%
Loser sasualties = 100 - 20.3 = 79.7 %

Using previous example, under plunder mode
Attacker win
Attacker lose 41 Glaivemen + 41 Lancer
Defender lose 80 swordman + 80 Heavy Infantry

2 comments:

  1. It can't be that simple.

    ReplyDelete
  2. Effective Def = [(200 Inf/400 Total Att Units) x 10000 Inf Def] + [(100 Cal/400 Total Att Units)x8500)] = 9250

    From where comes "100 Cal" eventhough the defender does not have cavalry defense units???

    ReplyDelete