v0.9.26

Damage

From the hit to the number on screen: the chain of multipliers in code order.

Formulas extracted from the game code, version 0.9.26

This page follows the damage path in the code: from the base move to the final number, and the reverse path when an enemy hits you. Enemies have no Defense stat: only their HP and types matter.

Damage dealt calculator

Fill in the values and see the damage step by step, in game order. Effectiveness uses the move's type and the defender's types.

From move to base damage

Each move becomes a weapon from its archetype (base damage and cooldown) and the move's power (70 if none):

  • Damage: archetypeDamage⋅clamp⁡(0.72+power260,0.85,1.3)\mathrm{archetypeDamage} \cdot \operatorname{clamp}\!\left(0.72 + \tfrac{\mathrm{power}}{260}, 0.85, 1.3\right)
  • Cooldown: archetypeCd⋅clamp⁡(0.88+power−60500,0.85,1.15)\mathrm{archetypeCd} \cdot \operatorname{clamp}\!\left(0.88 + \tfrac{\mathrm{power} - 60}{500}, 0.85, 1.15\right), and ×0.85 on priority moves
  • Damage per cast: damage⋅1.3⋅mods.damage⋅(1+(level−1)⋅0.04)\mathrm{damage} \cdot 1.3 \cdot \mathrm{mods.damage} \cdot (1 + (\mathrm{level} - 1)\cdot0.04). Fusion moves count as level + 7
  • Effective cooldown: max⁡(0.6,cd⋅mods.cdatkSpeed)\max\!\left(0.6, \tfrac{\mathrm{cd}\cdot\mathrm{mods.cd}}{\mathrm{atkSpeed}}\right)

Some moves have their own adjustments (damage or cooldown multiplier), so the conversion above is the general rule, not valid for all of them.

Example: Pound (strike archetype: damage 17, cooldown 0.95; power 40): damage 14.86, cooldown 0.81 s.

What goes past the limits becomes damage: area above 3.4× multiplies by (excess)0.7(\mathrm{excess})^{0.7}; cooldown below 0.6 s multiplies by 0.6max⁡(0.12,rawCooldown)\tfrac{0.6}{\max(0.12, \mathrm{rawCooldown})}, up to ×5.

The chain of multipliers

Every move that is not fixed damage goes through these multipliers, in this order:

#StepFactor
1Damage statDamage stat
2Physical or specialPhysical damage or Special damage stat, depending on the move's class
3STAB×1.25 (×1.5625 with Adaptability)
4Type items1+0.4copies1 + 0.4\,\text{copies}
5Type effectiveness×1.35 / ×0.8 / ×0.5 per defender type, product capped at 0.4 to 1.8; if > 1.01, × Super effective damage
6Weather×1.3 or ×0.75
7Damage to elitesDamage to elites stat against Elite, Alpha, Totem, Summoner and Boss
8Crit×Crit damage; or ×Crit damage⋅(1+0.5⋅(Crit damage−1))\times\text{Crit damage}\cdot(1+0.5\cdot(\text{Crit damage}-1)) on a mega crit
9Target stateCursed ×1.25; Frozen ×1.2; Asleep ×1.8

The game has other conditional multipliers in between (items like Metronome, abilities, relics…); only the fixed and stat-based ones are listed here. After that come the elemental reactions (Status page).

Crit and mega crit

Crit chance is crit+megaCrit+move bonus+upgrade bonus\mathrm{crit} + \mathrm{megaCrit} + \text{move bonus} + \text{upgrade bonus} and is rolled per hit. A crit multiplies by Crit damage (base ×1.75). If the chance goes above 100%, each crit becomes a mega crit with chance chance−1\text{chance} - 1: crit⋅(1+0.5(crit−1))\mathrm{crit} \cdot (1 + 0.5\,(\mathrm{crit} - 1)), or ×2.406 with the base value.

Example: with 130% chance and Crit damage ×1.75, the expected multiplier is 0.7⋅1.75+0.3⋅2.406=1.9470.7 \cdot 1.75 + 0.3 \cdot 2.406 = 1.947.

Damage taken

When an enemy hits you: raw damage×type (0.5 to 1.6)×(1−armorarmor+45)×ability damage taken\text{raw damage} \times \text{type (0.5 to 1.6)} \times \left(1 - \tfrac{\text{armor}}{\text{armor} + 45}\right) \times \text{ability damage taken}. If you do not dodge, Alpha, Boss, Totem and Summoner do not take more than 25% of your Max HP per hit.

An enemy's raw damage is (5+atk16+spa24)⋅dmgMult⋅roleMultiplier\left(5 + \tfrac{\mathrm{atk}}{16} + \tfrac{\mathrm{spa}}{24}\right) \cdot \mathrm{dmgMult} \cdot \mathrm{roleMultiplier}.

Damage taken calculator

How enemies scale

Each enemy spawns with HP and damage calculated from the species' base stats and the stage time.

  • HP: (12+0.055BST)⋅hpMult⋅early⋅roleMultiplier(12 + 0.055\,\mathrm{BST}) \cdot \mathrm{hpMult} \cdot \mathrm{early} \cdot \mathrm{roleMultiplier}
  • Damage: (5+atk16+spa24)⋅dmgMult⋅roleMultiplier\left(5 + \tfrac{\mathrm{atk}}{16} + \tfrac{\mathrm{spa}}{24}\right) \cdot \mathrm{dmgMult} \cdot \mathrm{roleMultiplier}
  • Only regular enemies have the initial bonus early=1.35+1.05max⁡(0,1−s480)\mathrm{early} = 1.35 + 1.05\,\max\!\left(0, 1 - \tfrac{s}{480}\right), with ss = effective stage seconds (480 s = 8 min; unit inferred from the code).
  • In Classic mode: hpMult=(1+0.3t+max⁡(0,t−1.5)2⋅k)⋅stage scale\mathrm{hpMult} = (1 + 0.3\,t + \max(0, t - 1.5)^{2}\cdot k)\cdot\text{stage scale} in minutes tt; k is 0.15 / 0.07 / 0.05 / 0.05 and stage scale 1 / 5.5 / 13 / 20.
  • Difficulty multiplies HP, damage, speed and count (table below).

Multipliers by role

RoleHPDamagePer-hit cap
Regular×1×1—
Elite×4.5×1.4—
Alpha×22×1.825% of max HP
Boss×70×2.225% of max HP
Totem×30×1.625% of max HP
Summoner×14×1.225% of max HP

Difficulties

DifficultyHPDamageSpeedCountXP
Normal×1×1×1×1×1
Hard×1.4×1.42×1.08×1.3×1.15
Nightmare×1.9×1.96×1.16×1.6×1.3

HP multiplier in Classic mode

Stage0 Minutes5 Minutes10 Minutes15 Minutes20 Minutes
1×1×4.3×14.8×32.8×58.3
2×5.5×23.4×60.5×116.9×192.5
3×13×48.8×117×217.8×351
4×20×75×180×335×540

Values from the HP curve (no difficulty, no role bonus).

XP and leveling up

The XP needed for the next level is round⁡(8+5.5L+L1.8)\operatorname{round}\!\left(8 + 5.5\,L + L^{1.8}\right).

xpNext(L)=round⁡(8+5.5L+L1.8)\mathrm{xpNext}(L) = \operatorname{round}\!\left(8 + 5.5\,L + L^{1.8}\right)
Level LXP to next
115
554
10126
20338
30629
501426

XP gained is orb⋅experience⋅(1+0.15difficulty)\mathrm{orb} \cdot \mathrm{experience} \cdot (1 + 0.15\,\mathrm{difficulty}). In Survival mode the cost grows ×1.008max⁡(0,L−60)\times 1.008^{\max(0, L - 60)}.

Run score

Each mode's score is a weighted sum. The variables are kills, time in seconds, total damage, bosses defeated and, depending on the mode, stage and victory.

ModeFormula
Survival and Expeditionkills×2+time×4+damage200+bosses×800+legendaries×2000\mathrm{kills} \times 2 + \mathrm{time} \times 4 + \tfrac{\mathrm{damage}}{200} + \mathrm{bosses} \times 800 + \mathrm{legendaries} \times 2000
Lavender Towerkills×2+time×3+damage200+(stage−1)×800+bosses×500+6000 if victory\mathrm{kills} \times 2 + \mathrm{time} \times 3 + \tfrac{\mathrm{damage}}{200} + (\mathrm{stage} - 1) \times 800 + \mathrm{bosses} \times 500 + 6000\ \text{if victory}
Classic(kills×2+time×3+damage200+(stage−1)×1500+bosses×800+6000 if victory)×(1+0.5tier)\left(\mathrm{kills} \times 2 + \mathrm{time} \times 3 + \tfrac{\mathrm{damage}}{200} + (\mathrm{stage} - 1) \times 1500 + \mathrm{bosses} \times 800 + 6000\ \text{if victory}\right) \times (1 + 0.5\,\mathrm{tier})