prevent random ammo stacks going above 60
This commit is contained in:
parent
f322663530
commit
9e95e1bbac
@ -603,7 +603,7 @@ export class BotLootGenerator
|
|||||||
{
|
{
|
||||||
const randomSize = itemTemplate._props.StackMaxSize === 1
|
const randomSize = itemTemplate._props.StackMaxSize === 1
|
||||||
? 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)
|
if (!ammoItem.upd)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user