Flat is Justice - Home
Exact attack bar
Save (for sharing)
Formulas used:
- engagement/precap: precapatk = atk * (engagement) * precap
where
engagement = x1.2 (15%) x1 (45%) x0.8 (30%) x0.6 (10%)
with saiun:
engagement = x1.2 (15%) x1 (45%) x0.8 (40%)
- cap:
postcapatk = floor(floor((precapatk > cap) ? cap + sqrt(precapatk - cap) : precapatk) * criticalmodifier) * postcapmultiplier
- damage: dmg = floor((attack - (0.7 * armor + 0.6 * rng.nextInt(armor))) * ammomultiplier)
- ammomultiplier: min(1.0, 2 * ammorem)
- scratch: if(dmg < 1) -> dmg = floor(0.06 * currentHP + 0.08 * rng.nextInt(currentHP))
- overkill protection:
if(dmg >= currentHP) -> dmg = floor(0.5 * currentHP + 0.3 * rng.nextInt(currentHP))
- marriage hp: postring = prering + [4, 4, 4, 5, 6, 7, 7, 8, 8, 9][floor(prering/10)]
where nextInt
returns uniformly, 0 inclusive up to argument exclusive
Some formulas come from KC kai's setDamageValue
in
Server_Controllers.BattleLogic\BattleLogicBase.cs
Based on and inspired by KC-calc suffering, inspired by
Pyan's Unmei system