This commit is contained in:
Dev 2024-01-26 15:56:53 +00:00
parent 8a824c2cae
commit 3764d923fd

View File

@ -70,7 +70,13 @@ export class BotInventoryGenerator
// Generate base inventory with no items
const botInventory = this.generateInventoryBase();
this.generateAndAddEquipmentToBot(templateInventory, wornItemChances, botRole, botInventory, botLevel);
this.generateAndAddEquipmentToBot(
templateInventory,
wornItemChances,
botRole,
botInventory,
botLevel,
);
// Roll weapon spawns (primary/secondary/holster) and generate a weapon for each roll that passed
this.generateAndAddWeaponsToBot(
@ -85,7 +91,13 @@ export class BotInventoryGenerator
);
// Pick loot and add to bots containers (rig/backpack/pockets/secure)
this.botLootGenerator.generateLoot(sessionId, botJsonTemplate, isPmc, botRole, botInventory, botLevel);
this.botLootGenerator.generateLoot(
sessionId,
botJsonTemplate,
isPmc,
botRole,
botInventory,
botLevel);
return botInventory;
}