fix(char): fallback to manual relic set name resolve
Build and Deploy / build-and-deploy (push) Successful in 1m4s
Build and Deploy / build-and-deploy (push) Successful in 1m4s
This commit is contained in:
Vendored
+3
@@ -27,3 +27,6 @@ declare module "*.webp" {
|
|||||||
const file: string;
|
const file: string;
|
||||||
export default file;
|
export default file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// oxlint-disable-next-line typescript/consistent-type-imports
|
||||||
|
declare var devCache: import("enka.ts").TTLCache;
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ import { ElementList } from "@/games/genshin/types/enka";
|
|||||||
import { Deduplicator } from "@/lib/dedupe";
|
import { Deduplicator } from "@/lib/dedupe";
|
||||||
import { createLogger } from "@/lib/logger";
|
import { createLogger } from "@/lib/logger";
|
||||||
|
|
||||||
export const cache = new TTLCache();
|
globalThis.devCache ??= new TTLCache();
|
||||||
|
export const cache = globalThis.devCache;
|
||||||
const log = createLogger("ASSET");
|
const log = createLogger("ASSET");
|
||||||
|
|
||||||
export class AssetManager {
|
export class AssetManager {
|
||||||
|
|||||||
@@ -120,7 +120,10 @@ export async function CharacterPage({
|
|||||||
}))
|
}))
|
||||||
: [];
|
: [];
|
||||||
return {
|
return {
|
||||||
set: a.flat.setId! ?? a.flat.setNameTextMapHash,
|
set:
|
||||||
|
a.flat.setId! ??
|
||||||
|
relicStore.Items[`${a.itemId}`]?.SetId ??
|
||||||
|
a.flat.setNameTextMapHash,
|
||||||
stars: a.flat.rankLevel,
|
stars: a.flat.rankLevel,
|
||||||
level: a.reliquary!.level - 1,
|
level: a.reliquary!.level - 1,
|
||||||
appendPropIdList,
|
appendPropIdList,
|
||||||
|
|||||||
Reference in New Issue
Block a user