loop: baseline

This commit is contained in:
bepis
2026-10-20 20:33:35 +11:00
parent f1ae7b3119
commit 9a308b697d
32 changed files with 959 additions and 2046 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ On level-up: `hp_current = maxHp`, loop to handle multiple level-ups from one re
## Derived stats
```
maxHp = 50 + vit*10 + level*5 + itemBonusVit*10
maxHp = 50 + totalVit*10 + level*5 // totalVit = base vit + equipment vit (counted ONCE)
primary = STR | INT | AGI (by class)
attack = 5 + primary*2 + level + equipment.bonus_attack
defense = floor(vit*1.5) + equipment.bonus_defense (+10% if Warrior)
@@ -35,7 +35,7 @@ speed = 10 + agi
critChance% = min(40, 5 + floor(agi*0.5)) (+8 if Ranger)
critMult = 1.5
```
Equipment `bonus_str/agi/int/vit` are added to the base stats BEFORE the derived formulas.
Equipment `bonus_str/agi/int/vit` are added to the base stats BEFORE the derived formulas, and nowhere else (never count an equipment bonus twice).
## Damage
```