Damage Calculation: Difference between revisions

From Empires of the Undergrowth Official Wiki
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 33: Line 33:
Total damage is calculated based on this formula.
Total damage is calculated based on this formula.


Total damage = [''base damage'' x ''splash percentage'' x (100% - ''AOE resistance'') - ''armor''] x [(100% - (''physical or venom resistance'' - ''piercing'')]
Total damage = [<font color="green">''base damage''</font> x ''splash percentage'' x (100% - <font color="red">''AOE resistance''</font>) - <font color="red">''armor''</font>] x [(100% - (<font color="red">''physical or venom resistance''</font> - <font color="green">''piercing''</font>)]


The value of [''resistance'' - ''piercing''] can't be negative. [[Damage Modifying Effect|Resistance modifying effects]] are only applied after [''resistance'' - ''piercing''] has been calculated.
The value of [''resistance'' - ''piercing''] can't be negative. The value of [''damage'' - ''armor''] must have a minimum value of 0.5.


The value of [''damage'' - ''armor''] must have a minimum value of 0.5.
[[Damage Modifying Effect|Resistance modifying effects]] and maximum taken damage are only applied after total damage has been calculated.


Each instant of damage in damage-over-time effects is treated as an attack of its own.  
Each instant of damage in damage-over-time effects is treated as an attack of its own.  

Latest revision as of 02:19, 3 November 2024

This page shows damage calculation and related mechanics.


Damage

Abilities which target enemies will be called attacks in this wiki.

Attack damage is applied immediately while effect damage is applied separately afterward.

Damage must be either physical or venom. Only the male scientist, certain hybrid and testing equipments are currently confirmed to inflict true damage, which ignores damage modifications.


Area damage

AOE attacks will inflict damage on multiple enemies over a certain area at once. The affected area is calculated from the target.

Splash attacks will inflict less damage on non-targeted enemies if they aren't within a certain radius from the main target. The formula hasn't been revealed.


Damage modifications

  • AOE resistance: Creatures with this stat can reduce taken damage if they are over 10 length units away from the main target.
  • Armor: Creatures with this stat can reduce taken damage by a flat amount.
  • Resistance: Creatures with physical resistance or venom resistance can reduce taken damage from same-typed attacks by a certain percentage.
  • Piercing: Creatures with this stat can reduce the resistance of their enemies in damage calculation.
  • Maximum taken damage: Creatures with this stat can only take a certain maximum amount of damage from each attack.
  • Evasion: Creatures with this stat have certain chance to evade attacks and skip damage calculation.


Damage formula

Total damage is calculated based on this formula.

Total damage = [base damage x splash percentage x (100% - AOE resistance) - armor] x [(100% - (physical or venom resistance - piercing)]

The value of [resistance - piercing] can't be negative. The value of [damage - armor] must have a minimum value of 0.5.

Resistance modifying effects and maximum taken damage are only applied after total damage has been calculated.

Each instant of damage in damage-over-time effects is treated as an attack of its own.

Examples

The attacker deals 5 physical damage initially. It also deals 10 venom damage every 0.5 second for 2 seconds afterward. The defender has 20% physical resistance and 10% venom resistance.

=> Attack damage = 5 x (1 - 0.2) = 4.

=> Effect damage = 10 x (1 - 0.1) x 2 / 0.5 = 36.

=> Total damage = 4 + 36 = 40.

If the defender can only take maximum of 3 damage per hit, the total damage becomes: 3 + 3 x 2 / 0.5 = 15.


Trivia

(none)