fix: also increment LastCompletedDayIdx when completing a 1999 challenge (#2256)

Fixes #2255

Reviewed-on: OpenWF/SpaceNinjaServer#2256
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-06-23 04:58:21 -07:00 committed by Sainan
parent f61d15b496
commit 271f5bd47a

View File

@ -622,6 +622,7 @@ export const addMissionInventoryUpdates = async (
const calendarProgress = getCalendarProgress(inventory); const calendarProgress = getCalendarProgress(inventory);
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);
calendarProgress.SeasonProgress.LastCompletedDayIdx++;
calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx++; calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx++;
calendarProgress.SeasonProgress.ActivatedChallenges.push(challengeName); calendarProgress.SeasonProgress.ActivatedChallenges.push(challengeName);
} }