|This article is about the armor classes in Age of Empires II which define bonus damage. For the two armor types which define base damage, see armor and pierce armor.|
In-game references Edit
The bonus attack and armor class system isn't really displayed in-game. While the tech tree states for each unit against which other unit it deals bonus damage, it doesn't tell the player how this bonus damage is dealt, or which unit is in which armor class. While most armor classes are intuitive (for example it is pretty clear that the Eagle Warrior is in the infantry class) there are also many which are not. For example, the aforementioned Eagle Warrior is also in its own Eagle Warrior class, and Champions deal significant bonus damage against this class. Neither is referenced to anywhere in the game. Another example are Camels: They aren't in the cavalry class like one might assume, but instead in their own camel class, which takes less bonus damage than the cavalry class, so they are less vulnerable to their counter units than the game suggests.
Basically, the bonus damage is calculated the same way as the base damage is calculated (simply by subtraction of attack and armor), but in order to calculate bonus damage in the first place, the attacking unit logically has to have an attack bonus against its target. This is where the armor classes come into play.
Simply speaking, bonus damage is a flat additive value to the base damage and if a unit has more than one armor class, the bonus damages of the attacking unit stack. For example, the War Elephant is in the war elephant and in the cavalry armor class, and the Halberdier has an attack bonus against both classes. So both bonus damages are added when a Halberdier attacks a War Elephant.
Each unit has an armor value for every armor class it is assigned to. For most units this armor value is 0 and simply determines that they are in this class and take bonus damage, but for some units, it is non-zero. A positive value indicates that this unit (partially) resists bonus attacks against this armor class, while a negative value means it takes even more damage. For example, the Cataphract has +12 cavalry armor, making it less vulnerable to anti-cavalry attacks than other cavalry. On the other hand, for example, the Ballista Elephant has -2 cavalry armor, making it take even more damage from anti-cavalry attacks.
Damage calculation Edit
The attack calculation in Age of Empires II basically works in three steps. Melee damage, pierce damage, and bonus damage are calculated separately. The damage is calculated like this:
How melee (n) and pierce (p) damage work is described here. This page addresses the last part in the calculation concerning the bonus (i) damage. k.elev is the elevation multiplier, which increases the total damage dealt when a unit has high ground (cliffs or higher elevation) and decreases the damage dealt when a unit is standing on a lower elevation.
While the formula may look complicated at first glance, it basically says that a specific armor class armor is subtracted from its respective bonus attack, but the individual result cannot be negative. This resulting value (positive in most cases) is added to the total damage dealt. Bonus attack cannot be reduced by melee or pierce armor.
Unlike with melee and pierce damage, information about the bonus damage cannot be found in the unit infobox.
Every unit that has an attack bonus is given a third (fourth, fifth, ...) attack next to its base pierce and melee attack. And that attack only triggers if the target has a matching armor class.
- An Archer has no melee attack, a pierce attack of 4, and an attack of 3 against the Spearman armor class.
- A Spearman has a melee armor of 0, a pierce armor of 0, and a Spearman armor of 0.
- If the Archer now hits the Spearman, it deals 4-0 (pierce) + 3-0 (Spearman) = 7 damage.
- A Man-at-Arms has a melee armor of 0, a pierce armor of 1, and no Spearman armor.
- If the Archer now hits the Man-at-Arms, it deals 4-1 (pierce) = 3 damage. The bonus damage against Spearmen is not triggered, because the Man-at-Arms does not have the corresponding armor class.
- A Karambit Warrior has a base melee attack of 5, no pierce attack, and an attack of 2 against the Eagle Warrior armor class.
- An Eagle Warrior has a melee armor of 0, a pierce armor of 3, and an Eagle armor of 0.
- If the Karambit Warrior now hits the Eagle Warrior, it deals 5-0 (melee) + 2-0 (Eagle) = 7 damage. The pierce armor does not come into play as the Karambit Warrior does not have a pierce attack.
All three parts in that calculation can be negative if the target has higher armor than the attacking unit has attack. As the formula shows, in that case every part is rounded up to zero, so one weak spot cannot be compensated, and the minimum amount of overall damage dealt is always 1. The example below shows this as well as an attack involving negative armor, both melee and pierce attack, and a multi-shot attack. The calculation follows the patterns mentioned above.
- A Chu Ko Nu fires three arrows with an attack. It has a melee attack of 0 (for all its arrows), a pierce attack of 8 for the first arrow, and pierce attack of 3 for all the other arrows.
- A Battering Ram has a melee armor of -3, and a pierce armor of 180.
- If the Chu Ko Nu now hits a Battering Ram, it deals 0-(-3) (melee) + 8-180 (pierce, rounded up to 0) = 3 damage with the first arrow, and 0-(-3) (melee) + 3-180 (pierce, rounded up to 0) = 3 damage for the other two arrows, resulting in a total damage of 9.
- If the Archer from the first example now hits the Battering Ram, it deals 4-180 (pierce, rounded up to 0) = 0 (rounded up to 1) damage. The melee armor does not come into play as the Archer does not have a melee attack.
These examples also show the difference between having no attack or armor (meaning there is no value assigned) and having 0 attack or armor. No attack or armor means the respective part is not calculated, and 0 attack or armor means that the part is calculated. The difference resulting from this can be quite substantial, as the last example shows.
List of armor classes Edit
Unit classes Edit
- 1 - Infantry
- 2 - Turtle Ship
- 3 - Base pierce
- 4 - Base melee
- 5 - War elephant
- 8 - Cavalry
- 14 - Predator animals
- 15 - Archer
- 16 - Ship
- 17 - Ram
- 18 - Tree
- 19 - Unique unit
- 20 - Siege weapon
- 23 - Gunpowder unit
- 24 - Boar
- 25 - Monk
- 27 - Spearman
- 28 - Cavalry archer
- 29 - Eagle Warrior
- 30 - Camel
- 31 - Anti-Leitis
- 32 - Condottiero
- 34 - Fishing Ship
- 35 - Mameluke
- 36 - Hero and King
Building classes Edit
- All units are supposed to have the armor classes 3, 4 and 31.
- The Elephant Archer (War elephant, Cavalry, Archer, Unique unit, and Cavalry archer) and the Conquistador (Cavalry, Archer, Unique unit, Gunpowder unit, and Cavalry archer) have the most armor classes of all units, at 5.
- Special Wolves like the Dire Wolf, Hunting Wolf, and Ornlu the Wolf have base armor zero and no armor class, which makes them take all sorts of bonus damage, all of which stack.
- Since the Definitive Edition, armor classes can be modified in the Scenario Editor.