From 8ec94a13220683ab21efdd59ef24d922da469a70 Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 27 Jan 2024 22:39:57 +0000 Subject: [PATCH] Skip gifter when removing christmas items --- project/src/generators/BotGenerator.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/project/src/generators/BotGenerator.ts b/project/src/generators/BotGenerator.ts index 90cc8640..63ed5273 100644 --- a/project/src/generators/BotGenerator.ts +++ b/project/src/generators/BotGenerator.ts @@ -170,10 +170,14 @@ export class BotGenerator if (!this.seasonalEventService.christmasEventEnabled()) { - this.seasonalEventService.removeChristmasItemsFromBotInventory( - botJsonTemplate.inventory, - botGenerationDetails.role, - ); + // Process all bots EXCEPT gifter, he needs christmas items + if (botGenerationDetails.role !== "gifter") + { + this.seasonalEventService.removeChristmasItemsFromBotInventory( + botJsonTemplate.inventory, + botGenerationDetails.role, + ); + } } // Remove hideout data if bot is not a PMC or pscav