Update Healer Man server

This commit is contained in:
phenom committed 2026-09-19 21:01:51 -04:00
1 parent f8314e7de1
commit 1fedb9368d
76 files changed
+20556 -2523

No files matched your search

+15 -5
View File
@@ -990,8 +990,8 @@ function clamp(value: number, min: number, max: number): number {
}
const ROM_RAGE_CLASSES = new Set<ClassId>(["rom-warrior", "rom-champion"]);
const ROM_RAGE_PER_AUTO_ATTACK = 6;
const ROM_RAGE_PER_HIT_TAKEN = 7;
const RAGE_PER_AUTO_ATTACK = 6;
const RAGE_PER_HIT_TAKEN = 7;
const ROM_CHAMPION_RAGE_PER_SECOND = 6;
const PLAYER_AUTO_ATTACK_RANGE = 5;
@@ -6526,7 +6526,7 @@ export const useCombatStore = create<CombatState>((set, get) => ({
hasRomWarriorRagePool(state.classId, state.secondaryClassId)
|| (!hasRomRagePool(state.classId, state.secondaryClassId) && state.maxResourcePools.rage !== undefined)
)
? ROM_RAGE_PER_HIT_TAKEN
? RAGE_PER_HIT_TAKEN
: 0,
state.resource,
state.maxResource,
@@ -7554,7 +7554,7 @@ export const useCombatStore = create<CombatState>((set, get) => ({
hasRomWarriorRagePool(current.classId, current.secondaryClassId)
|| (!hasRomRagePool(current.classId, current.secondaryClassId) && current.maxResourcePools.rage !== undefined)
)
? ROM_RAGE_PER_HIT_TAKEN
? RAGE_PER_HIT_TAKEN
: 0,
current.resource,
current.maxResource,
@@ -7823,11 +7823,21 @@ export const useCombatStore = create<CombatState>((set, get) => ({
};
}
}
const ragePool = authoritativeActor.resources.rage;
const nextActor: CombatActorState = {
...authoritativeActor,
health: authoritativeActor.health - damaged,
alive: authoritativeActor.health - damaged > 0,
cast: authoritativeActor.health - damaged > 0 ? nextCast : null,
resources: damaged > 0 && ragePool
? {
...authoritativeActor.resources,
rage: {
...ragePool,
current: Math.min(ragePool.maximum, ragePool.current + RAGE_PER_HIT_TAKEN),
},
}
: authoritativeActor.resources,
};
mirrorCompanionActor(nextActor);
if (redirected > 0) {
@@ -8114,7 +8124,7 @@ export const useCombatStore = create<CombatState>((set, get) => ({
const rage = gainRomRage(
state.classId,
state.secondaryClassId,
ROM_RAGE_PER_AUTO_ATTACK,
RAGE_PER_AUTO_ATTACK,
work.resource,
work.maxResource,
work.resourcePools,