track non-evergreen milestone rewards in LoginMilestoneRewards
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (20) (push) Successful in 1m7s
				
			
		
			
				
	
				Build / build (22) (push) Successful in 1m7s
				
			
		
			
				
	
				Build / build (18) (pull_request) Successful in 1m11s
				
			
		
			
				
	
				Build / build (20) (pull_request) Successful in 1m10s
				
			
		
			
				
	
				Build / build (22) (pull_request) Successful in 1m10s
				
			
		
			
				
	
				Build / build (18) (push) Successful in 2m58s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (20) (push) Successful in 1m7s
				
			Build / build (22) (push) Successful in 1m7s
				
			Build / build (18) (pull_request) Successful in 1m11s
				
			Build / build (20) (pull_request) Successful in 1m10s
				
			Build / build (22) (pull_request) Successful in 1m10s
				
			Build / build (18) (push) Successful in 2m58s
				
			This commit is contained in:
		
							parent
							
								
									c3802b49ca
								
							
						
					
					
						commit
						5ea736d72f
					
				@ -22,6 +22,9 @@ export const loginRewardsSelectionController: RequestHandler = async (req, res)
 | 
			
		||||
            StoreItemType: body.ChosenReward
 | 
			
		||||
        };
 | 
			
		||||
        inventoryChanges = (await handleStoreItemAcquisition(body.ChosenReward, inventory)).InventoryChanges;
 | 
			
		||||
        if (!evergreenRewards.find(x => x == body.ChosenReward)) {
 | 
			
		||||
            inventory.LoginMilestoneRewards.push(body.ChosenReward);
 | 
			
		||||
        }
 | 
			
		||||
    } else {
 | 
			
		||||
        const randomRewards = getRandomLoginRewards(account, inventory);
 | 
			
		||||
        chosenReward = randomRewards.find(x => x.StoreItemType == body.ChosenReward)!;
 | 
			
		||||
@ -40,3 +43,15 @@ interface ILoginRewardsSelectionRequest {
 | 
			
		||||
    ChosenReward: string;
 | 
			
		||||
    IsMilestoneReward: boolean;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const evergreenRewards = [
 | 
			
		||||
    "/Lotus/Types/StoreItems/Packages/EvergreenTripleForma",
 | 
			
		||||
    "/Lotus/Types/StoreItems/Packages/EvergreenTripleRifleRiven",
 | 
			
		||||
    "/Lotus/Types/StoreItems/Packages/EvergreenTripleMeleeRiven",
 | 
			
		||||
    "/Lotus/Types/StoreItems/Packages/EvergreenTripleSecondaryRiven",
 | 
			
		||||
    "/Lotus/Types/StoreItems/Packages/EvergreenWeaponSlots",
 | 
			
		||||
    "/Lotus/Types/StoreItems/Packages/EvergreenKuva",
 | 
			
		||||
    "/Lotus/Types/StoreItems/Packages/EvergreenBoosters",
 | 
			
		||||
    "/Lotus/Types/StoreItems/Packages/EvergreenEndo",
 | 
			
		||||
    "/Lotus/Types/StoreItems/Packages/EvergreenExilus"
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
@ -1366,7 +1366,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
 | 
			
		||||
        ThemeSounds: String,
 | 
			
		||||
 | 
			
		||||
        //Daily LoginRewards
 | 
			
		||||
        LoginMilestoneRewards: [String],
 | 
			
		||||
        LoginMilestoneRewards: { type: [String], default: [] },
 | 
			
		||||
 | 
			
		||||
        //You first Dialog with NPC or use new Item
 | 
			
		||||
        NodeIntrosCompleted: [String],
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user