Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Latest commit

 

History

History
241 lines (172 loc) · 15 KB

damage-formula.md

File metadata and controls

241 lines (172 loc) · 15 KB
description
An explanation as to how outgoing damage is calculated.

Outgoing Damage Formula

General Formula for Damage

See the sections below for the breakdown of each individual part of the formula.

Base Damage

$$ BaseDamage = \begin{cases} Talent\ % \times ATK & \text{if, } talent\ scales\ with\ Attack\ Talent\ % \times DEF & \text{if, } talent\ scales\ with\ Defense\ Talent\ % \times Max\ HP & \text{if, } talent\ scales\ with\ Max HP \end{cases} $$

$$ ATK = (AttackCharacter + AttackWeapon) \times (1 + AttackBonus) + FlatAttack $$

$$ DEF = DefenseCharacter \times (1 + DefenseBonus) + FlatDefense $$

$$ Max\ HP = HealthCharacter \times (1 + HealthBonus) + FlatHealth $$

Formula Variable Explanation
Talent % The scaling percentage of the talent.
AttackCharacter Character's base attack.
AttackWeapon Weapon's base attack.
AttackBonus Sum of all percentage-based attack bonuses from weapons, artifacts and other sources.
FlatAttack Sum of all non-percentage-based attack bonuses from artifacts and other sources.
DefenseCharacter Character's base defense.
DefenseBonus Sum of all percentage-based defense bonuses from artifacts, weapons and other sources.
HealthCharacter Character's base health.
HealthBonus Sum of all percentage-based HP bonuses from artifacts, weapons and other sources
FlatDamage Extra damage from sources such as Zhongli's A4 passive or Kokomi's Elemental Burst.
DamageBonus Sum of all percentage damage increases from goblets, weapons, set bonuses and other buffs. Excludes Xingqiu's C4 effect Evilsoother and Yoimiya's Elemental Skill Niwabi Fire-Dance.
SpecialMultiplier Applies to certain character talents only. See the Special Multiplier section for full details.

Flat Damage Sources

Expand

Critical Hits

$$ Crit= \begin{cases} 1 + CritDamage & \text{with } min{100%,CritRate}\ probability\ 1 & \text{otherwise } \end{cases} $$

$$ AverageCrit = 1 + min{CritRate,100%} \times CritDamage $$

Formula Variable Explanation
CritRate The total crit rate, including the 5% base crit rate and bonuses from artifacts, etc.
CritDamage The total crit damage, including the 50% base crit damage and bonuses from artifacts, etc.

Enemy Defense

$$ \begin{multline*} EnemyDefMult = \frac{Level_{Character} + 100}{(Level_{Character} + 100) + (Level_{Enemy} + 100) \times (1-DefReduction) \times (1-DefIgnore)} \end{multline*} $$

Formula Variable Explanation
LevelCharacter The player character's level.
LevelEnemy The enemy's level.
DefReduction The total defense (but not resistance) reduction from various defense reduction effects.
DefIgnore The total defense ignore from effects such as Raiden's Constellation 2.
  • Defense shred is hard capped at 90%

Defense Reduction Effects

Enemy Resistance

$$ EnemyResMult = \begin{cases} 1 - \frac{Resistance}{2} & \text{if, } Resistance \lt 0\ 1 - Resistance & \text{if, } 0 \le Resistance \lt 0.75\ \frac{1}{4 \times Resistance + 1} & \text{if, } Resistance \ge 0.75 \end{cases} $$

$$ Resistance = BaseResistance - ResistanceReduction $$

Formula Variable Explanation
BaseResistance The enemy's base resistance to the element of the attack being used. Enemy Resistances database contains all enemy base elemental resistances.
ResistanceReduction The total resistance reduction of the relevant element from effects such as Superconduct and Viridescent Venerer.

Amplifying Reaction Bonus

$$ AmplifyingReaction = \begin{cases} 2 \times (1 + \frac{2.78 \times EM}{1400 + EM} + ReactionBonus) & \text{if, } triggering\ & Vaporize\ with\ Hydro\ or\ & Melt\ with\ Pyro\ 1.5 \times (1 + \frac{2.78 \times EM}{1400 + EM} + ReactionBonus) & \text{if, } triggering\ &Vaporize\ with\ Pyro\ or\ & Melt\ with\ Cryo\ 1 & \text{otherwise} \end{cases} $$

Formula Variable Explanation
EM The character's total Elemental Mastery.
ReactionBonus Reaction damage bonuses from the Crimson Witch 4-piece set and from Mona's C1 (for Vaporize).

Special Multiplier

Unlike other bonuses, these are directly multiplicative with base talent scaling. They can be considered a multiplier of the talent motion value.

$$ SpecialMultiplier = \begin{cases} 1.5 & \text{if, } Evilsoother\ triggered\ 1.3791 - 1.7060 & \text{if, } Niwabi\ Fire\text{-}Dance\ activated\ 1 & \text{otherwise} \end{cases} $$

Formula Variable Explanation
Evilsoother Xingqiu’s Constellation 4 ability applies a 1.5 buff to his elemental skill.
Niwabi Fire-Dance Yoimiya's Elemental Skill applies a scaling buff to her normal attacks.

Transformative Reaction Bonus

$$ \begin{multline*} TransformativeReactions = BaseMultipler \times \biggl( 1+ \frac{16 \times EM}{2000 + EM} + ReactionBonus \biggr)\ \times LevelMultiplier \times EnemyResistanceMultiplier \end{multline*} $$

$$ BaseMultiplier = \begin{cases} 4 & \text{if, } triggering\ Overloaded\ 3 & \text{if, } triggering\ Shatter\ 2.4 \times ECTriggers & \text{if, } triggering\ ElectroCharged\ 1.2 & \text{if, } triggering\ Swirl\ 1 & \text{if, } triggering\ Superconduct\ 0 & \text{otherwise} \end{cases} $$

$$ \begin{align} LevelMultiplier \approx & \begin{cases} 0.0002325 &\times CharLvl^{3} + 0.05547 \times CharLvl^{2} & \ &- 0.2523 \times CharLvl + 14.47 & \text{if, } CharLvl < 60 \ 0.00194 &\times CharLvl^{3} - 0.319 \times CharLvl^{2} & \ &+ 30.7 \times CharLvl - 868 & \text{if, } CharLvl \geq 60\ \end{cases} \end{align} $$

Formula Variable Explanation
ECTriggers The number of times Electro-Charged triggers, and depends on the elemental gauge strength of the Hydro and Electro elements applied to the enemy.
EM The character's total Elemental Mastery.
ReactionBonus Includes reaction damage bonuses from the Thundering Fury and Viridescent Venerer 4-piece sets and from Mona's Constellation 1.
LevelMultiplier Check the Genshin Wiki.
EnemyResistanceMultiplier Uses the Enemy Resistance formula above, but for the element of the transformative reaction (pyro for overloaded, physical for shattered, electro for electro-charged, cryo for superconduct, and the element being swirled for swirl).

Proc

The damage dealt by weapon and ability procs when they trigger, such as Prototype Archaic or Xiangling's constellation 2. This is dealt as a separate instance of damage from the attack that triggered it.

To calculate this damage, substitute the proc percentage (e.g. 240% for Prototype Archaic R1) for Talent in the damage formula. Note that weapon proc effects always deal physical damage, and are therefore affected by physical damage bonuses and physical resistance, even if an elemental attack is used to trigger them.

Proc Damage Sources:

Characters
  • Anemo Traveler's Slitting Wind (A1)
  • Geo Traveler's Frenzied Rockslide (A4)
  • Xiangling's Oil Meets Fire (C2)
Weapons
  • Bows
    • Skyward Harp
    • The Viridescent Hunt
  • Catalysts
    • Eye of Perception
    • Frostbearer
  • Claymores
    • Debate Club
    • Luxurious Sea-Lord
    • Prototype Archaic
    • Skyward Pride
    • Snow-Tombed Starsilver
  • Swords
    • Aquila Favonia
    • Skyward Blade
    • The Flute
  • Polearms
    • Crescent Pike
    • Dragonspine Spear
    • Halberd
    • Skyward Spine

Additional Notes

Any effect that scales off of a certain stat will not count any buffs that also scale themselves off of someone else's stat in their calculation.

"In order to avoid infinite stacking of in-game bonuses, when an effect confers one attribute as a certain percentage of another attribute, this effect will not then factor into calculations of other similar percentage-based effects." - Mihoyo

Examples of such buffs:

  • Sucrose's Ascension 4: Mollis Favonius: EM share
  • Kaedehara Kazuha's Ascension 4: Poetics of Fuubutsu: DMG % buff
  • Electro Traveler's Ascension 4: Resounding Roar: Energy Recharge buff

Evidence Vault

{% content-ref url="../../evidence/combat-mechanics/damage/damage-formula.md" %} damage-formula.md {% endcontent-ref %}