fix: more robust handling of CalendarProgress #2319

Merged
Sainan merged 2 commits from calendar-robustness into main 2025-06-26 19:35:05 -07:00
Showing only changes of commit 0c3ec57ea3 - Show all commits

View File

@ -674,7 +674,7 @@ export const addMissionInventoryUpdates = async (
const calendarProgress = getCalendarProgress(inventory);
const currentSeason = getWorldState().KnownCalendarSeasons[0];
calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx = currentSeason.Days.findIndex(
x => x.events[0].challenge == value[value.length - 1].challenge
day => day.events.length != 0 && day.events[0].challenge == value[value.length - 1].challenge
);
checkCalendarChallengeCompletion(calendarProgress, currentSeason);
break;