forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
39458d5de6
commit
6cc1b9217f
203 files changed
+133929
-31271
No files matched your search
@@ -427,6 +427,14 @@ function procTrigger(trigger: Extract<RomAbilitySemantic, { kind: "proc" }>["tri
|
||||
function semanticEffect(row: GeneratedSemanticRow, semantic: RomAbilitySemantic, index: number): AbilityEffect {
|
||||
const componentKey = semantic.sourceComponentIds.join("-") || "tooltip";
|
||||
const effectId = `${row.sourceSkillId}-${componentKey}-${index}`;
|
||||
const nativeSource = ["damage", "heal", "dot", "hot"].includes(semantic.kind)
|
||||
&& semantic.sourceComponentIds.length === 1
|
||||
? { romNativeSource: {
|
||||
skillId: row.sourceSkillId,
|
||||
componentId: semantic.sourceComponentIds[0],
|
||||
kind: semantic.kind as "damage" | "heal" | "dot" | "hot",
|
||||
} }
|
||||
: {};
|
||||
if (semantic.kind === "damage" || semantic.kind === "heal") {
|
||||
const rawPower = Math.max(0, semantic.power);
|
||||
const rawFixed = Math.max(0, semantic.fixedValue);
|
||||
@@ -443,6 +451,7 @@ function semanticEffect(row: GeneratedSemanticRow, semantic: RomAbilitySemantic,
|
||||
const pointsPerLevel = sourcePoints * Math.max(0, semantic.powerPerSkillLevel) / 100;
|
||||
const basePoints = sourcePoints + pointsPerLevel;
|
||||
const amount = {
|
||||
...nativeSource,
|
||||
coefficient,
|
||||
...(coefficientPerLevel > 0 ? { coefficientPerLevel, sourceLevel: 1 } : {}),
|
||||
...(basePoints > 0 ? {
|
||||
@@ -469,6 +478,7 @@ function semanticEffect(row: GeneratedSemanticRow, semantic: RomAbilitySemantic,
|
||||
const percentHealthHot = semantic.kind === "hot" && semantic.resource === "health-percent";
|
||||
return {
|
||||
kind: semantic.kind,
|
||||
...nativeSource,
|
||||
coefficient: 0,
|
||||
...(semantic.kind === "dot" && combatSchool(semantic.school)
|
||||
? { school: combatSchool(semantic.school) }
|
||||
@@ -1613,6 +1623,7 @@ function ability(row: GeneratedSkill): AbilityDefinition {
|
||||
effects: currentCoaPassive ? [] : effects({ ...row, target, classId, secondaryClassId }),
|
||||
passive: currentMageDruidGreenGuardian ? false : currentCoaPassiveMode || row.sourceSkillId === 490274 ? true : row.passive,
|
||||
source: "runewaker",
|
||||
...(row.sourceSkillId === 490148 ? { sourceAttackKind: "melee" as const } : {}),
|
||||
sourceUnlockLevel: row.unlockLevel,
|
||||
ranks: currentRanks,
|
||||
romSkillGroup: currentMageDruidGreenGuardian ? "elite" : row.group,
|
||||
|
||||
Reference in new issue
Block a user