From 9d3f6dc0924b35c5f0a7c687b188434672baf0f4 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 1 Nov 2023 11:00:43 +0000 Subject: [PATCH] For slots that have seasonal items added, force slot spawn chance to be at least 75% --- project/src/services/SeasonalEventService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/src/services/SeasonalEventService.ts b/project/src/services/SeasonalEventService.ts index 24bf3acc..81ba9289 100644 --- a/project/src/services/SeasonalEventService.ts +++ b/project/src/services/SeasonalEventService.ts @@ -383,6 +383,9 @@ export class SeasonalEventService const gearAmendments = botGearChanges[bot]; for (const equipmentSlot in gearAmendments) { + // Adjust slots spawn chance to be at least 75% + botToUpdate.chances.equipment[equipmentSlot] = Math.max(botToUpdate.chances.equipment[equipmentSlot], 75); + // Grab gear to add and loop over it const itemsToAdd = gearAmendments[equipmentSlot]; for (const itemTplIdToAdd in itemsToAdd)