feat: calendar progress #1830
@ -21,6 +21,8 @@ export const completeCalendarEventController: RequestHandler = async (req, res)
 | 
			
		||||
                    if (selection.type == "CET_REWARD") {
 | 
			
		||||
                        inventoryChanges = (await handleStoreItemAcquisition(selection.reward!, inventory))
 | 
			
		||||
                            .InventoryChanges;
 | 
			
		||||
                    } else if (selection.type == "CET_UPGRADE") {
 | 
			
		||||
                        calendarProgress.YearProgress.Upgrades.push(selection.upgrade!);
 | 
			
		||||
                    } else if (selection.type != "CET_PLOT") {
 | 
			
		||||
                        throw new Error(`unexpected selection type: ${selection.type}`);
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user