From d001fe8fb5902955f8805e72c19694abc4279287 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 18 Jul 2023 19:14:52 +0100 Subject: [PATCH] Adjust the secure container ammo stack sizes for PMCs to reduce chance PMCs run out of ammo --- project/src/generators/BotWeaponGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/generators/BotWeaponGenerator.ts b/project/src/generators/BotWeaponGenerator.ts index 1c60ce5e..bea2411f 100644 --- a/project/src/generators/BotWeaponGenerator.ts +++ b/project/src/generators/BotWeaponGenerator.ts @@ -312,7 +312,7 @@ export class BotWeaponGenerator this.inventoryMagGenComponents.find(v => v.canHandleInventoryMagGen(inventoryMagGenModel)).process(inventoryMagGenModel); // Add x stacks of bullets to SecuredContainer (bots use a magic mag packing skill to reload instantly) - this.addAmmoToSecureContainer(this.botConfig.secureContainerAmmoStackCount, ammoTpl, ammoTemplate._props.StackMaxSize, inventory); + this.addAmmoToSecureContainer(this.botConfig.secureContainerAmmoStackCount, ammoTpl, 999, inventory); } /** @@ -338,7 +338,7 @@ export class BotWeaponGenerator this.inventoryMagGenComponents.find(v => v.canHandleInventoryMagGen(ubglAmmoGenModel)).process(ubglAmmoGenModel); // Store extra grenades in secure container - this.addAmmoToSecureContainer(3, generatedWeaponResult.chosenUbglAmmoTpl, 1, inventory); + this.addAmmoToSecureContainer(5, generatedWeaponResult.chosenUbglAmmoTpl, 20, inventory); } /**