fix: use shared count for calendar day indecies #2265

Merged
OrdisPrime merged 5 commits from cal-fix-ii into main 2025-06-23 15:02:31 -07:00
Showing only changes of commit c4404e2942 - Show all commits

View File

@ -630,10 +630,9 @@ export const addMissionInventoryUpdates = async (
case "CalendarProgress": {
const calendarProgress = getCalendarProgress(inventory);
const currentSeason = getWorldState().KnownCalendarSeasons[0];
const index = currentSeason.Days.findIndex(
calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx = currentSeason.Days.findIndex(
x => x.events[0].challenge == value[value.length - 1].challenge
);
calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx = index;
checkCalendarChallengeCompletion(calendarProgress, currentSeason);
/*for (const progress of value) {
const challengeName = progress.challenge.substring(progress.challenge.lastIndexOf("/") + 1);