Damage Calculation

I'm bad at web page stuff. Feel free to help.

**Damage Calculation for ATK only.** (Damage calculation for Hashrate may not be the same. Btw, there are many things that are not tested, so the actual calculations may be pretty scuffed.)

List of Attributes to be used:

* Attacker's **ATK** **(ATK)**
* Attacker's **ATK Modifier Fixed/Percentage (ATK.Mn / ATK.M%n)**
* Attacker's **Crit Damage** **(CRD)**
* Attacker's **Crit Damage Modifier** **(CRD.Mn)**
* Attacker's **Physical Penetration (PHP)**
* Attacker's **Physical Penetration Modifier Fixed/Percentage** **(PHP.Mn / PHP.M%n)**
* Attacker's **Damage Boost (DAB)**
* Attacker's **Damage Boost Modifier (DAB.Mn)**
* Defender's **Physical DEF (PHD)**
* Defender's **Physical DEF Modifier Fixed/Percentage (PHD.Mn / PHD.M%n)**
* Defender's **Injury Mitigation (INM)**
* Defender's **Injury Mitigation Modifier (INM.Mn)**

(Note:

* The acronyms listed, e.g. (PHD), will be used in the Damage Calculation Formula. Please refer to them.
* **Modifiers** **from skills, debuffs, etc during battle**, are used to demonstrate how changes in stats during battle will affect the damage calculations, and **n** is used to denote the numbering, Modifier1 Modifier2 Modifier3 .
* I'm assuming that the terms **Damage Dealt Increase == Damage Boost** & **Injury Mitigation == Damage Reduction**)

**Physical DEF Calculation**

**Physical DEF Reduction =** **1 - 1000/[1000+(PHD-PHP)]** . (Note: **Physical DEF Reduction** **cannot** go lower than **-0.25**, which is at **(PHD-PHP) = -200**.)

**Physical DEF Reduction with modifier** **= 1 - 1000/{1000+[[PHD\*(1+PHD.M%1+PHD.M%2+...)+PHD.M1+PHD.M2+... ]-[PHP\*(1+PHP.M%1+PHP.M%2+...)+PHP.M1+PHP.M2+... ]]}** . (Have not tested for Physical DEF Modifier Fixed and both Physical Penetration Modifiers. Is it even possible?)

Make sure to round down modified Physical DEF (tested) and Physical Penetration (Not tested) before using the Formula.

Equation basically means that if Defender has **Physical DEF Reduction = 0.2** against the attacker, Physical Damage taken from an attack will be reduced by 20%.

**Damage Calculation**

**Basic Attack Damage (No Crit) = ATK \* {1000/[1000+(PHD-PHP)]} \* (1+DAB-INM)**

**Basic Attack Damage (No Crit) with modifier =[ATK(1+ATK.M%1+...)+ATK.M1+...] \* 1000/{1000+[[PHD\*(1+PHD.M%1+...)+PHD.M1+... ]-[PHP\*(1+PHP.M%1+...)+PHP.M1+... ]]} \* (1+DAB+DAB.M1+... -INM-INM.M1+...)** . (Also have not tested for Injury Mitigation Modifiers and ATK Modifier Fixed. This is all guesswork.)

**Basic Attack Damage (Crit) = ATK \* {1000/[1000+(PHD-PHP)]} \* (1+DAB-INM) \* (1+CRD)**

**Basic Attack Damage (Crit) with modifier = [ATK(1+ATK.M%1+...)+ATK.M1+...] \* 1000/{1000+[[PHD\*(1+PHD.M%1+...)+PHD.M1+... ]-[PHP\*(1+PHP.M%1+...)+PHP.M1+... ]]} \* (1+DAB+DAB.M1+... -INM-INM.M1+...) \* [1+(CRD+CRD.M1+...)]** . (The Test for Crit Damage Modifier was based off AKI's 30 Crit Damage passive.)

**Skill ATK Damage = Skill ATK Modifier \*** **Basic Attack Damage (No Crit)** (If there is possible crit, then just use **Basic Attack Damage (Crit)**.)

Important notes:

* Found that Damage Boost (or Damage Dealt Increase) and Physical DEF are both additive. ~ Additive: e.g. boost ATK by 10% and 20%, total damage increase is (10+20)%=30%. While Multiplicative: e.g. boost ATK by 10% and 20%, total damage increase is 100%-(110\*120)%=32%. **Need someone to test for multiplicative or additive for Injury Mitigation (or Damage Reduction).**
* **SEE PHYSICAL DEF CALCULATION NOTES: INFINITE SCALING PHYSICAL PENETRATION DOES NOT EXIST. {1000/[1000+(PHD-PHP)]} cannot go higher than 1.25, where (PHD-PHP)= -200.**
* Need to test whether need to Round Down modified Attributes before Damage calculation: Physical DEF (need), Physical Penetration (not tested), Crit Damage (not tested, most likely 1 decimal point), ATK (not tested, keep getting whole numbers).
* For All Attributes with Percentages, Substitute: 1% = 0.01. (Or just Divide by 100).
* Feel free to ignore all formulas with modifiers. They are ugly and only meant to show additive nature between Attributes and modifiers.
* If there's a mistake in the formulas (Bracket errors or whatever) or it's too ugly for you, please edit it. Thanks in advance.