Skip gifter when removing christmas items

This commit is contained in:
Dev 2024-01-27 22:39:57 +00:00
parent 5ffa186b0e
commit 8ec94a1322

View File

@ -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