Update class mechanics, stat rulesets, and CoA reference catalogs
This commit is contained in:
1 parent
b16821e92e
commit
39458d5de6
221 files changed
+2584962
-568
No files matched your search
@@ -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";
|
||||
}
|
||||
Reference in new issue
Block a user