feat: calendar progress #1830

Merged
Sainan merged 2 commits from calendar-progress into main 2025-04-25 11:53:35 -07:00
Showing only changes of commit ba6d3afd8a - Show all commits

View File

@ -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}`);
}