From 9e95e1bbac6c147082d218e388ed6c7570d1e5f8 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 17 Dec 2023 22:36:47 +0000 Subject: [PATCH] prevent random ammo stacks going above 60 --- project/src/generators/BotLootGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/generators/BotLootGenerator.ts b/project/src/generators/BotLootGenerator.ts index a47f1924..fbc28bf8 100644 --- a/project/src/generators/BotLootGenerator.ts +++ b/project/src/generators/BotLootGenerator.ts @@ -603,7 +603,7 @@ export class BotLootGenerator { const randomSize = itemTemplate._props.StackMaxSize === 1 ? 1 - : this.randomUtil.getInt(itemTemplate._props.StackMinRandom, itemTemplate._props.StackMaxRandom); + : this.randomUtil.getInt(itemTemplate._props.StackMinRandom, Math.min(itemTemplate._props.StackMaxRandom, 60)); if (!ammoItem.upd) {