Damage/Armor effect

Armor Effect
The Armor Effect (AE) depends on the difference of Effective Damage Level (EffDL) and Effective Armor Level (EffAL):


 * '''AE = 2(EffDL-EffAL)/40

Damage Level
The Effective Damage Level (EffDL) is a simple sum of the Base Damage Level (BaseDL) and any Damage Level bonuses (DLBonus).


 * EffDL = BaseDL + DLBonus

For attacks from spells and caster weapons (Staves, Wands, etc), the BaseDL is proportional to the attacker's level.


 * BaseDLcaster = 3 &times; Level 

For other types of attacks (melee weapons, bows, and pets), the BaseDL depends on the attacker's rank in the respective attribute of the "weapon".


 * BaseDLnoncaster = 5 &times; Rank

If the Rank of the linked attribute is greater than a threshold of Level/2+2, then there is a DLBonus of  - 3 &times; [Rank - (Level/2+2)], serving as a diminishing return. The square bracket term in this case rounds up (towards zero).

For detailed chart showing damage level at each character level/rank, see Damage Level progression

Critical hits grant a DLBonus of 20.

Armor Level
The Effective Armor Level depends on the Base Armor Level (BaseAL), AL Shifter (ALShift), and Net Armor Penetration (NAP).


 * EffAL = BaseAL &times; (1 - NAP) + ALShift

Each attack randomly hits one of the following body locations:
 * Chest - 37.5% for weapon attacks
 * Legs - 25% for weapon attacks
 * Head/Hands/Feet - 12.5% each for weapon attacks

Certain attack skills and spells have a bias in which body part they are more likely to hit. Relative positioning of the attacker and target can also affect which part is more likely to be hit. The Armor Level of the piece corresponding to the location attacked is used as the BaseAL, while any bonuses on that armor contributes to ALShift. certain armor are described as having a negative bonus of ''Holy Damage you receive is increased by 5, but they function regardless of hit location and stacking.

Primary and secondary weapons, as well as skills, may also modify the armor value. They are added to the ALShift regardless of which body location was hit.

Armor penetration can come from the Warrior's Strength attribute, weapon upgrades, or skill properties. Some of them simply have x% armor penetration, whereas others provide +y% armor penetration. Pick the highest x (if none, use 0), and add all the y's to it to obtain the net armor penetration (NAP). Note that NAP is a real number between 0 and 1; remember to divide percentage values by 100 (20% &rarr; 0.2, etc.).