fix(char): fallback to manual relic set name resolve
Build and Deploy / build-and-deploy (push) Successful in 1m4s

This commit is contained in:
2026-07-09 09:19:43 +07:00 Unverified
parent 95c241413a
commit baf2bdbe81
3 changed files with 9 additions and 2 deletions
Vendored
+3
View File
@@ -27,3 +27,6 @@ declare module "*.webp" {
const file: string;
export default file;
}
// oxlint-disable-next-line typescript/consistent-type-imports
declare var devCache: import("enka.ts").TTLCache;
+2 -1
View File
@@ -19,7 +19,8 @@ import { ElementList } from "@/games/genshin/types/enka";
import { Deduplicator } from "@/lib/dedupe";
import { createLogger } from "@/lib/logger";
export const cache = new TTLCache();
globalThis.devCache ??= new TTLCache();
export const cache = globalThis.devCache;
const log = createLogger("ASSET");
export class AssetManager {
+4 -1
View File
@@ -120,7 +120,10 @@ export async function CharacterPage({
}))
: [];
return {
set: a.flat.setId! ?? a.flat.setNameTextMapHash,
set:
a.flat.setId! ??
relicStore.Items[`${a.itemId}`]?.SetId ??
a.flat.setNameTextMapHash,
stars: a.flat.rankLevel,
level: a.reliquary!.level - 1,
appendPropIdList,