Skip gifter when removing christmas items
This commit is contained in:
parent
5ffa186b0e
commit
8ec94a1322
@ -169,12 +169,16 @@ export class BotGenerator
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!this.seasonalEventService.christmasEventEnabled())
|
if (!this.seasonalEventService.christmasEventEnabled())
|
||||||
|
{
|
||||||
|
// Process all bots EXCEPT gifter, he needs christmas items
|
||||||
|
if (botGenerationDetails.role !== "gifter")
|
||||||
{
|
{
|
||||||
this.seasonalEventService.removeChristmasItemsFromBotInventory(
|
this.seasonalEventService.removeChristmasItemsFromBotInventory(
|
||||||
botJsonTemplate.inventory,
|
botJsonTemplate.inventory,
|
||||||
botGenerationDetails.role,
|
botGenerationDetails.role,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Remove hideout data if bot is not a PMC or pscav
|
// Remove hideout data if bot is not a PMC or pscav
|
||||||
if (!(botGenerationDetails.isPmc || botGenerationDetails.isPlayerScav))
|
if (!(botGenerationDetails.isPmc || botGenerationDetails.isPlayerScav))
|
||||||
|
Loading…
Reference in New Issue
Block a user