Damage Calculation: Difference between revisions

From Empires of the Undergrowth Official Wiki
Created page with "This page shows damage calculation and related mechanics. <br/> =='''Damage'''== A creature can use its abilities to inflict damage on enemies. Attack damage is applied immediately while effect damage is applied separately afterward. Damage must be either physical or venom. Only the male scientist and fungus waste poisoning is currently confirmed to inflict true damage, which ignores damage modifications.<ref>Confirmed by Mike on..."
 
mNo edit summary
 
(26 intermediate revisions by the same user not shown)
Line 3: Line 3:
<br/>
<br/>
=='''Damage'''==
=='''Damage'''==
A creature can use its abilities to inflict damage on enemies. Attack damage is applied immediately while effect damage is applied separately afterward.  
Attacks are abilities that inflict damage or execution on enemies.


Damage must be either physical or venom. Only the [[The Scientists|male scientist]] and [[Leafcutter Ant|fungus waste]] poisoning is currently confirmed to inflict true damage, which ignores damage modifications.<ref>Confirmed by Mike on Discord (September 29th 2021)</ref>
Attack damage is applied immediately while effect damage is applied separately afterward.
 
Damage must be either physical or venom. Only the [[Scientist|male scientist]], some [[Dragantula|titans]] and environmental hazards can inflict true damage, which ignores all damage modifications.


<br/>
<br/>
=='''Area damage'''==
=='''Area damage'''==
An AOE ability may inflict damage on multiple enemies over a certain area at once. The affected area is calculated from the target.
Area attacks will inflict damage on multiple enemies over a certain area at once. The affected area is calculated from the main target.


A splash attack with 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.
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.


<br/>
<br/>
=='''Damage modifications'''==
=='''Damage modifications'''==
*'''AOE resistance:''' A creature with this stat can reduce taken damage if they are over [[Stat|10 units]] away from the main target of an AOE ability.
*'''Area resistance:''' Creatures with this stat can reduce taken damage from area attacks if they are at a certain distance from the main target.
 
*'''Armor:''' Creatures with this stat can reduce taken damage by a flat amount.
 
*'''Physical resistance:''' Creatures with this stat can reduce taken damage from physical attacks by a certain percentage.  


*'''Armor:''' A creature with this stat can reduce taken damage by a flat amount.
*'''Venom resistance:''' Creatures with this stat can reduce taken damage from venom attacks by a certain percentage.  


*'''Resistance:''' A creature 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 physical resistance or venom resistance of enemies in damage calculation.


*'''Piercing:''' A creature with this stat can reduce the resistance of its enemies in damage calculation.
*'''Front resistance:''' Creatures with this stat can reduce taken damage from frontal attacks by a certain percentage.  


*'''Maximum taken damage:''' A creature with this stat can only take a certain maximum amount of damage from each attack.
*'''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.  


<br/>
<br/>
Line 29: Line 37:
Total damage is calculated based on this formula.
Total damage is calculated based on this formula.


Total damage = [''base damage'' * ''splash percentage'' * (100% - ''AOE resistance'') - ''armor''] * (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>|] x (100% - <font color="red">''front resistance''</font>)


The value of [''resistance'' - ''piercing''] must be positive. The value of [''damage'' - ''armor''] must have a minimum value of 0.5.
The value of [''resistance'' - ''piercing''] can't be negative. The value of [''damage'' - ''armor''] must have a minimum value of 0.5. Maximum taken damage is only applied after total damage has been calculated.
 
An instant of damage in [[Damaging Effect|damage-over-time effect]] is treated as an attack of its own.  


'''Examples'''
'''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.
The attacker inflicts 50 physical damage. The defender has 20% physical resistance and 10 armor.
 
=> Attack = 5 * (1 - 0.2) = 4.
 
=> Effect damage = 10 * (1 - 0.1) * 2 / 0.5 = 36.


=> Total damage = 4 + 36 = 40.
=> Attack damage = (50 - 10) x (1 - 0.2) = 32


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


<br/>
<br/>

Latest revision as of 10:36, 28 July 2025

This page shows damage calculation and related mechanics.


Damage

Attacks are abilities that inflict damage or execution on enemies.

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

Damage must be either physical or venom. Only the male scientist, some titans and environmental hazards can inflict true damage, which ignores all damage modifications.


Area damage

Area attacks will inflict damage on multiple enemies over a certain area at once. The affected area is calculated from the main 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

  • Area resistance: Creatures with this stat can reduce taken damage from area attacks if they are at a certain distance from the main target.
  • Armor: Creatures with this stat can reduce taken damage by a flat amount.
  • Physical resistance: Creatures with this stat can reduce taken damage from physical attacks by a certain percentage.
  • Venom resistance: Creatures with this stat can reduce taken damage from venom attacks by a certain percentage.
  • Piercing: Creatures with this stat can reduce physical resistance or venom resistance of enemies in damage calculation.
  • Front resistance: Creatures with this stat can reduce taken damage from frontal attacks by a certain percentage.
  • 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|] x (100% - front resistance)

The value of [resistance - piercing] can't be negative. The value of [damage - armor] must have a minimum value of 0.5. Maximum taken damage is only applied after total damage has been calculated.

Examples

The attacker inflicts 50 physical damage. The defender has 20% physical resistance and 10 armor.

=> Attack damage = (50 - 10) x (1 - 0.2) = 32

If the defender can only take maximum of 5 damage per hit, the final damage becomes 5.


Trivia

(none)