Wars damage table

This table shows how much damage the unit on the left will cause to the unit on the right.
This value is affected by the defense of the terrain and the life points of the units.

-MilitiaWarriorScoutCataphractKnightCatapultTrebuchet
Milita554512511525
Warrior65558555157085
Scout706535614555
Cataphract75708555157085
Knight105951058555105105
Catapult90858070457580
Trebuchet95909080558085

In detail, the base damage above is modified by two factors.

Factor 1

Factor1 = LifepointsOfAttacker / 100
The less life the attacker has, the lower the factor will be.
Example:
With 30 life, factor1 will be 30 / 100 = 0.3

Factor 2

Factor 2 = 1.0 - LifepointsOfDefender * DefenseOfTerrain / 1000
The smaller the defense and lifepoints of the defender, the smaller the factor will be.
Example:
A unit with 94 life standing on a city (3 defense) will give us a factor2 of 1 - 94 * 3 / 1000 = 0.718

Examples

A militia with 100 life, standing on a forest, is attacking a warrior with 90 life, standing on grassland (1 defense).
The base damage is 45.
factor1 = 100 / 100 = 1
factor2 = 1 - 90 * 1 / 1000 = 0.91
Final damage dealt = baseDamage * factor1 * factor2 = 45 * 1 * 0.91 = 40.95
The warrior, who lost 41 life (49 left), will now attack the militia.
baseDamage = 65
factor1 = 49 / 100 = 0.49
factor2 = 1 - 100 * 2 / 1000 = 0.8
Final damage = 65 * 0.49 * 0.8 = 25.48
In the end, the warrior has only 49 life left, the militia has 75 life left.

Another Example

A knight with 70 life, standing on a street (0 defense) attacks a cataphract with 96 life standing on a forest (2 defense).
baseDamage = 85
factor1 = 70 / 100 = 0.7
factor2 = 1 - 96 * 2 / 1000 = 0.808
Final damage = 85 * 0.7 * 0.808 = 48.076
When the cataphract starts it's counterattack, it has 48 life left.
baseDamage = 15
factor1 = 48 / 100 = 0.48
factor2 = 1 - 70 * 0 / 1000 = 1
Final Damage = 15 * 0.48 * 1 = 7.2
The knight lost only 7 life, even if he had the worse conditions.