Adjust the secure container ammo stack sizes for PMCs to reduce chance PMCs run out of ammo

This commit is contained in:
Dev 2023-07-18 19:14:52 +01:00
parent 3e15ab7b17
commit d001fe8fb5

View File

@ -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);
}
/**