Update class mechanics, stat rulesets, and CoA reference catalogs

This commit is contained in:
phenom committed 2026-10-04 12:56:30 -04:00
1 parent b16821e92e
commit 39458d5de6
221 files changed
+2584962 -568

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { isRomClassId, type ClassId } from "../app/characterCatalog";
export type CharacterStatRuleset = "wow" | "rom";
export function isCharacterStatRuleset(value: unknown): value is CharacterStatRuleset {
return value === "wow" || value === "rom";
}
/** Missing or invalid saved/runtime values keep the historical WoW behavior. */
export function normalizeCharacterStatRuleset(
value: unknown,
classId: ClassId,
): CharacterStatRuleset {
return value === "rom" && isRomClassId(classId) ? "rom" : "wow";
}