track season ActivatedChallenges
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (pull_request) Successful in 1m31s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (pull_request) Successful in 1m31s
				
			This commit is contained in:
		
							parent
							
								
									917d82c707
								
							
						
					
					
						commit
						6cd897b63a
					
				@ -88,6 +88,7 @@ import { ICalendarSeason } from "@/src/types/worldStateTypes";
 | 
			
		||||
import { generateNemesisProfile, INemesisProfile } from "../helpers/nemesisHelpers";
 | 
			
		||||
import { TAccountDocument } from "./loginService";
 | 
			
		||||
import { unixTimesInMs } from "../constants/timeConstants";
 | 
			
		||||
import { addString } from "../helpers/stringHelpers";
 | 
			
		||||
 | 
			
		||||
export const createInventory = async (
 | 
			
		||||
    accountOwnerId: Types.ObjectId,
 | 
			
		||||
@ -1784,6 +1785,10 @@ export const addChallenges = (
 | 
			
		||||
        } else {
 | 
			
		||||
            inventory.ChallengeProgress.push({ Name, Progress });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (Name.startsWith("Calendar")) {
 | 
			
		||||
            addString(getCalendarProgress(inventory).SeasonProgress.ActivatedChallenges, Name);
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    const affiliationMods: IAffiliationMods[] = [];
 | 
			
		||||
 | 
			
		||||
@ -634,12 +634,6 @@ export const addMissionInventoryUpdates = async (
 | 
			
		||||
                    x => x.events[0].challenge == value[value.length - 1].challenge
 | 
			
		||||
                );
 | 
			
		||||
                checkCalendarChallengeCompletion(calendarProgress, currentSeason);
 | 
			
		||||
                /*for (const progress of value) {
 | 
			
		||||
                    const challengeName = progress.challenge.substring(progress.challenge.lastIndexOf("/") + 1);
 | 
			
		||||
                    calendarProgress.SeasonProgress.LastCompletedDayIdx++;
 | 
			
		||||
                    calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx++;
 | 
			
		||||
                    calendarProgress.SeasonProgress.ActivatedChallenges.push(challengeName);
 | 
			
		||||
                }*/
 | 
			
		||||
                break;
 | 
			
		||||
            }
 | 
			
		||||
            case "duviriCaveOffers": {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user