fix: use shared count for calendar day indecies #2265
@ -630,10 +630,9 @@ export const addMissionInventoryUpdates = async (
|
|||||||
case "CalendarProgress": {
|
case "CalendarProgress": {
|
||||||
const calendarProgress = getCalendarProgress(inventory);
|
const calendarProgress = getCalendarProgress(inventory);
|
||||||
const currentSeason = getWorldState().KnownCalendarSeasons[0];
|
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
|
x => x.events[0].challenge == value[value.length - 1].challenge
|
||||||
);
|
);
|
||||||
calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx = index;
|
|
||||||
checkCalendarChallengeCompletion(calendarProgress, currentSeason);
|
checkCalendarChallengeCompletion(calendarProgress, currentSeason);
|
||||||
/*for (const progress of value) {
|
/*for (const progress of value) {
|
||||||
const challengeName = progress.challenge.substring(progress.challenge.lastIndexOf("/") + 1);
|
const challengeName = progress.challenge.substring(progress.challenge.lastIndexOf("/") + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user