From ba6d3afd8ab048eeec153459be29a0faa87599e3 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Fri, 25 Apr 2025 07:40:06 +0200 Subject: [PATCH] handle selection of CET_UPGRADE --- src/controllers/api/completeCalendarEventController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/api/completeCalendarEventController.ts b/src/controllers/api/completeCalendarEventController.ts index 3b1bf106..20c8abb3 100644 --- a/src/controllers/api/completeCalendarEventController.ts +++ b/src/controllers/api/completeCalendarEventController.ts @@ -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}`); }