From 6581896e30567dcaa068558ccc005fc4771eb80b Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 26 Jul 2023 22:46:19 +0100 Subject: [PATCH] Revert 999 stack size of ammo in bots secure containers + set secure stack count to 20 instead of 15 --- project/assets/configs/bot.json | 2 +- project/src/generators/BotWeaponGenerator.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project/assets/configs/bot.json b/project/assets/configs/bot.json index 36a1644f..d41088dc 100644 --- a/project/assets/configs/bot.json +++ b/project/assets/configs/bot.json @@ -261,7 +261,7 @@ "test": 4 }, "chanceAssaultScavHasPlayerScavName": 10, - "secureContainerAmmoStackCount": 15, + "secureContainerAmmoStackCount": 20, "revenge": { "assault": ["assault", "marksman", "gifter"], "marksman": ["assault", "marksman", "gifter"] diff --git a/project/src/generators/BotWeaponGenerator.ts b/project/src/generators/BotWeaponGenerator.ts index 1faacf6a..2e7f3e3d 100644 --- a/project/src/generators/BotWeaponGenerator.ts +++ b/project/src/generators/BotWeaponGenerator.ts @@ -350,7 +350,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, generatedWeaponResult.chosenAmmoTpl, 999, inventory); + this.addAmmoToSecureContainer(this.botConfig.secureContainerAmmoStackCount, generatedWeaponResult.chosenAmmoTpl, ammoTemplate._props.StackMaxSize, inventory); } /**