👽️ 处理空之神殿供奉图标加载异常

This commit is contained in:
BTMuli
2026-04-10 00:35:35 +08:00
parent 2e8ec962b6
commit 12169746af

View File

@@ -171,7 +171,16 @@ function transWorld(
children: [],
};
if (area.type === "Reputation") world.reputation = area.level;
if (area.offerings !== undefined && area.offerings.length > 0) world.offerings = area.offerings;
if (area.offerings !== undefined && area.offerings.length > 0) {
// 处理空之神殿供奉图标异常 TODO: 后续图标正常加载时替换回来
if (area.id === 19) {
const offer = {
...area.offerings[0],
icon: "https://webstatic.mihoyo.com/app/community-game-records/images/seven-statue-icon.dbb79dd6.png",
};
world.offerings = [offer];
} else world.offerings = area.offerings;
}
if (area.id in STATIC_AREA && STATIC_AREA[area.id].name === area.name) {
world.iconLight = STATIC_AREA[area.id].iconLight;
world.bg = STATIC_AREA[area.id].bg;