diff --git a/data/as.json.br b/data/as.json.br index 1254192..872a20f 100644 Binary files a/data/as.json.br and b/data/as.json.br differ diff --git a/data/avatar.json.br b/data/avatar.json.br index 404cef4..f18e58d 100644 Binary files a/data/avatar.json.br and b/data/avatar.json.br differ diff --git a/data/lightcone.json.br b/data/lightcone.json.br index 39bf31b..bf61bd6 100644 Binary files a/data/lightcone.json.br and b/data/lightcone.json.br differ diff --git a/data/metadata.json.br b/data/metadata.json.br index a182dfb..57e13af 100644 Binary files a/data/metadata.json.br and b/data/metadata.json.br differ diff --git a/data/moc.json.br b/data/moc.json.br index 92689c0..f452f2e 100644 Binary files a/data/moc.json.br and b/data/moc.json.br differ diff --git a/data/monster.json.br b/data/monster.json.br index 25d28df..c5fc93d 100644 Binary files a/data/monster.json.br and b/data/monster.json.br differ diff --git a/data/peak.json.br b/data/peak.json.br index a31f52f..3b7e670 100644 Binary files a/data/peak.json.br and b/data/peak.json.br differ diff --git a/data/pf.json.br b/data/pf.json.br index 0c6fb77..e35e3bf 100644 Binary files a/data/pf.json.br and b/data/pf.json.br differ diff --git a/data/relic.json.br b/data/relic.json.br index deb2d12..180a7d6 100644 Binary files a/data/relic.json.br and b/data/relic.json.br differ diff --git a/src/components/eidolonsInfo/index.tsx b/src/components/eidolonsInfo/index.tsx index 512bd8d..08f383b 100644 --- a/src/components/eidolonsInfo/index.tsx +++ b/src/components/eidolonsInfo/index.tsx @@ -42,17 +42,17 @@ export default function EidolonsInfo() {
{ - let newRank = Number(key) - if (avatars[avatarSelected?.ID || ""]?.data?.rank == Number(key)) { - newRank = Number(key) - 1 + let newRank = Number(rank.Rank) + if (avatars[avatarSelected?.ID || ""]?.data?.rank == Number(rank.Rank)) { + newRank = Number(rank.Rank) - 1 } setAvatars({ ...avatars, [avatarSelected?.ID || ""]: { ...avatars[avatarSelected?.ID || ""], data: { ...avatars[avatarSelected?.ID || ""].data, rank: newRank } } }) }} > {`Rank
- {key}. + {rank.Rank}. { - if (!challengeSelected) return + if (!challengeSelected.challenge) return if (peak_config.event_id !== 0 && peak_config.challenge_id !== 0 && challengeSelected) { const newBattleConfig = structuredClone(peak_config) newBattleConfig.cycle_count = 6 newBattleConfig.blessings = [] - for (const value of challengeSelected.MazeBuff) { + for (const value of challengeSelected?.challenge?.MazeBuff) { newBattleConfig.blessings.push({ id: value.ID, level: 1 }) } - if (peak_config.buff_id !== 0) { + if (peak_config.buff_id !== 0 && challengeSelected.isBoss) { newBattleConfig.blessings.push({ id: peak_config.buff_id, level: 1 }) } newBattleConfig.monsters = [] - newBattleConfig.stage_id = challengeSelected.EventList[0].ID - for (const wave of challengeSelected.EventList[0].MonsterList) { + newBattleConfig.stage_id = challengeSelected.challenge.EventList[0].ID + for (const wave of challengeSelected.challenge.EventList[0].MonsterList) { if (!wave) continue const newWave: MonsterStore[] = [] for (const value of Object.values(wave)) { if (!value) continue newWave.push({ monster_id: value, - level: challengeSelected.EventList[0].Level, + level: challengeSelected.challenge.EventList[0].Level, amount: 1, }) } @@ -180,8 +183,8 @@ export default function PeakBar() { {transI18n("turbulenceBuff")} - {challengeSelected && challengeSelected?.MazeBuff?.length > 0 ? ( - challengeSelected.MazeBuff.map((subOption, index) => ( + {challengeSelected?.challenge && challengeSelected?.challenge?.MazeBuff?.length > 0 ? ( + challengeSelected.challenge.MazeBuff.map((subOption, index) => (