prevent random ammo stacks going above 60

This commit is contained in:
Dev 2023-12-17 22:36:47 +00:00
parent f322663530
commit 9e95e1bbac

View File

@ -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)
{