updating buff and debuff icons. separated COA classes from WoW classes on the character creation screen

This commit is contained in:
phenom
2026-08-16 11:16:51 -04:00
parent b5c9bce1aa
commit c00f3211ea
39 changed files with 2037 additions and 208 deletions
+2 -5
View File
@@ -1,6 +1,6 @@
import type { CharacterProfile, PlayerSession } from "./types";
import {
contentCategoryForRace,
contentCategoryForClass,
isRomClassId,
type RomClassId,
} from "./characterCatalog";
@@ -112,7 +112,6 @@ function normalizeCharacterProfile(value: CharacterProfile): CharacterProfile {
equipment?: unknown;
manastormProgress?: unknown;
settings?: unknown;
categoryId?: unknown;
secondaryClassId?: unknown;
actionLoadouts?: unknown;
};
@@ -132,9 +131,7 @@ function normalizeCharacterProfile(value: CharacterProfile): CharacterProfile {
.filter(([, abilityId]) => abilityId === null || typeof abilityId === "string")
.map(([bindingId, abilityId]) => [bindingId, abilityId as string | null]))
: {};
const categoryId = legacy.categoryId === "rom" || legacy.categoryId === "wow"
? legacy.categoryId
: contentCategoryForRace(value.raceId);
const categoryId = contentCategoryForClass(value.classId);
const secondaryClassId = categoryId === "rom"
&& isRomClassId(value.classId)
&& typeof legacy.secondaryClassId === "string"