Release Healer Man 0.1.39

This commit is contained in:
phenom committed 2026-09-13 11:07:56 -04:00
1 parent b417b7c3c3
commit ed0d2fea3d
51 files changed
+17811 -49

No files matched your search

+5 -3
View File
@@ -3589,11 +3589,11 @@ export const useCombatStore = create<CombatState>((set, get) => ({
0,
registration.moveSpeed ?? existing?.moveSpeed ?? (boss ? 3.15 : 3.5),
);
const attackDamage = existing && registration.damageMultiplier !== undefined
const attackDamage = existing && level === existing.level && registration.damageMultiplier !== undefined
? Math.max(1, Math.round(
existing.attackDamage * (damageMultiplier / Math.max(0.01, existing.damageMultiplier)),
))
: existing?.attackDamage ?? Math.max(1, Math.round(
: (existing && level === existing.level ? existing.attackDamage : undefined) ?? Math.max(1, Math.round(
defaults.attackDamage * damageMultiplier,
));
const mob: MobCombatState = existing
@@ -3621,7 +3621,9 @@ export const useCombatStore = create<CombatState>((set, get) => ({
leashRange,
moveSpeed,
attackDamage,
health: Math.min(existing.health, maxHealth),
health: existing.dead || existing.health <= 0
? 0
: clamp(Math.round(existing.health / Math.max(1, existing.maxHealth) * maxHealth), 1, maxHealth),
xpReward,
hasLoot,
}