updating buff and debuff icons. separated COA classes from WoW classes on the character creation screen
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user