User:Grunni/Damage Rewrite

''I'm not happy with the Damage 2.0 article's organizational structure. The content is mostly fine, but I don't think it's easily navigated because the sections are so randomly ordered. If I can finish a complete revision, I might transfer it over.''

Grunni (talk) 06:00, October 19, 2015 (UTC)

Damage (ver. 2.0) is a system that calculates the hit points lost from a given target by its attacker. Damage dealt from players to enemies is displayed on the HUD as numbers near the point of impact on an enemy, while damage dealt to players is displayed on the HUD's health and shield counters. A bent strip on the HUD also indicate the direction of the attacker. Damage indicators are color-coded using the following system:
 * Regular attacks appear by default in white.
 * Critical hits and stealth attacks are in yellow.
 * Red crits, as their name suggests, appear in red.
 * All attacks against shields appear in blue, regardless of other factors.
 * All attacks against overshields appear in purple.

Damage results are modified by several mechanics - type modifiers (main content of this article), armor, critical hit bonuses, stealth bonuses, Warframe ability debuffs, body part modifiers, faction modifiers  - which are discussed below and on their respective pages.

The main feature of the Damage 2.0 system is that all damage dealt by any weapon or ability belongs to a certain damage type, and every target has specific resistances and vulnerabilities to different damage types. Exploiting enemy vulnerabilities and avoiding resistances by means of weapon selection and mod installation may significantly improve players' damage output.

Each individual projectile or melee attack will display a single damage number. Weapon with multiple projectiles like shotguns or rifles with Multishot will display a damage number for each individual projectile. Weapons which fires continuously will display a damage number at a constant rate of one tenth of a second.

Overview Table
Grineer =
 * -| Corpus =
 * -| Infested =
 * -| Corrupted =
 * -| Tenno =
 * -| All =

Physical Damage
Most weapons' base damage is made up of a combination of three physical damage types:, , and. The overall physical damage of any given weapon is the sum of Impact, Puncture, and Slash damage.

Most weapons have varying proportions of, , and.

Some weapons do however replace physical damage with either an elemental or combo elemental damage type. These do not have physical damage and are not affected by, , or mods.

Mods will affect damage types as decided by the player's loadout. General damage increasing mods, such as Serration, affect all the damage types of a weapon. However, specific physical damage type mods increase effectiveness only against certain armor types. Rupture increases only the damage; which is more helpful against Corpus than Infested, for example. Faction damage mods, such as Expel Grineer, also increase each type of damage against the faction in question.

Elemental Damage
In addition to the three base damage types, Elemental Damage can be applied on top of a weapon’s base damage depending on what Elemental Mods are applied. There are four primary Elemental Damage types:,, , and.

Certain weapons will deal only Elemental Damage, having no innate Physical Damage.

A single primary Elemental Damage type can be applied alone, but if a second primary Elemental Damage type is introduced they will combine into a secondary Elemental Damage type.

Combined Elemental Types
To create these combined elements requires mixing two primary elements together.

Elemental Damage is applied in addition to a weapon’s physical damage types. Weapon Damage = ( + + ) + (Elemental).

Elemental Damage Combinations are made by following a mod placement hierarchy. This hierarchy is from closest to top left (first to be considered) to closest to bottom right (last to be considered) on the mod layout. Innate weapon elemental damages are considered the last in the hierarchy. However, you can force it to be in a different position in the hierarchy if you use a mod of the same element as the innate element (e.g. putting Stormbringer on the top left slot of Synapse will change the position of its innate electric damage from last in hierarchy to first in hierarchy). Also, if using multiple mods with the same element, the first position is defining when they get combined.



As an example: If you're using an standalone weapon such as Prova and Lecta, then adding, , and  in 1, 2 and 3 respectively get:  ( + ) and  ( + ).

Combinations can sum additional damage from the basic elemental damages, as long as the combination follows first before other elementals can be attached to the specified weapon.

Weapons with innate Combination Elements such as Ogris, Penta , Stug , Nukor and Detron will always have that damage type, regardless of mods used. Therefore, on weapons like this, consider the elemental damage separate from your elemental mods, as they do not combine with the weapon's already combined damage type.



Damage Calculation
The following explains how a certain amount of damage of one type turns into actual inflicted damage to a target, considering type modifiers and armor. Faction modifiers, body part modifiers, critical hit and steal modifiers as well as Warframe debuffs are disregarded for now, since all of these are independent of damage types.

Unarmored
Against unarmored hit points or applying Finisher Damage, the formula is simply:




 * Inflicted Damage (ID) is the final damage result.
 * Base Damage (BD) is the initial damage value.
 * Hitpoint Modifier (HM) is the damage type modifier against that hitpoint type (may be shield or health).

To make it independent from the amount of base damage:






 * Damage Modifier (DM) is the total damage modifier. An amount of damage of that type (BD) against that enemy will then always be multiplied with this factor (DM).

Armored
Against armored hit points, the formula is: Where additionally to the previous definitions, AM is the damage type modifier against the armor type and AR is the target's armor after all reductions from debuffs (including Corrosive Projection, Corrosive procs and Terrify).

It's important to note that type modifiers against armor work in two ways here: they mitigate a percentage of the target's armor, and increase the damage dealt in the same way as a type modifier against the hitpoints would do.

Therefore, a simple (1 + HM) × (1 + AM) calculation yields incorrect results. The following damage type pairings deviate from that simplified calculation:
 * Against ferrite-armored cloned flesh,
 * always surpasses.
 * surpasses above 120 armor.
 * always surpasses ; but never surpasses.
 * Against alloy-armored cloned flesh,
 * always surpasses.
 * surpasses above 342 armor.
 * always surpasses.
 * However, neither nor  ever surpass.

This just shows that one can't easily compare damage type modifiers against an armor class to those against hitpoint classes, and those against armor are, at similar values, considerably more effective especially when fighting high level enemies (since armor scales with level). The relative damage bonus due to a damage type's armor modifier against armored health compared to no modifier can be quantified using the upper expression on the right. This is only defined for armor values greater than 0, because at 0, the armor type of the target is lost, such that the effect of the damage type's armor modifier is lost as well. Hence, the benefit (relative damage bonus) of the armor modifier at 0 armor is always 0. An interesting property of this benefit function is that, while one would intuitively assume the benefit of the armor modifier gets always greater the greater the target's armor, this benefit actually converges against a limit as armor approaches infinity if the armor modifier is smaller than one (which is true for all damage types against all armor types with the sole exception of finishing damage). Since this limit is only determined by the armor modifier of the damage type itself, it is a practical metric to gauge the relative effectiveness of damage types for long endless missions. The formula for the limit is the lower one given on the right. Below is a table of the actual values for all currently implemented armor modifiers. This illustrates the growing returns of greater armor modifiers, which may be compared to the behavior of Corrosive Projection aura stacking.

General
A generalized version of the aforementioned formula is: AR is still the target's armor after all debuffs (Corrosive Projection, Corrosive procs and Terrify) have been applied, how these debuffs work is subject of the armor article. AM is the damage type modifier against the armor class. M🇮🇳 for all indices i are all modifiers that take effect, these can be damage type modifiers against armor and hitpoint type, the crit modifier (on average: chance × damage multiplier), stealth bonus (only normal auto attacks, the special stealth attacks are classified as Finisher damage type and disregard armor), enemy body part/hit zone modifiers and damage multipliers from Warframe abilities like Molecular Prime, Roar, Sonar or Eclipse. The term following the large pi operator (&Pi;) simply means that this is a product, so all these bonuses stack multiplicatively. The notation replaces (1 + M🇮🇳) × (1 + M🇮🇳) × ... .

In case of enemies who have both shields and armor, damage to shield hitpoints is not mitigated by armor. Lastly, when or Finisher damage is applied to a shielded target, the damage is applied directly to its health, not shield hitpoints—it bypasses shields.