Stop addAmmoIntoEquipmentSlots()
from adding ammo if item cannot find container to add item to
This commit is contained in:
parent
4057301953
commit
0b57fe3a5b
@ -136,7 +136,7 @@ export class BotWeaponGeneratorHelper
|
|||||||
{
|
{
|
||||||
this.logger.debug(`Unable to add ammo: ${ammoItem._tpl} to bot inventory, ${ItemAddedResult[result]}`);
|
this.logger.debug(`Unable to add ammo: ${ammoItem._tpl} to bot inventory, ${ItemAddedResult[result]}`);
|
||||||
|
|
||||||
if (result === ItemAddedResult.NO_SPACE)
|
if (result === ItemAddedResult.NO_SPACE || result === ItemAddedResult.NO_CONTAINERS)
|
||||||
{
|
{
|
||||||
// If there's no space for 1 stack, there's no space for the others
|
// If there's no space for 1 stack, there's no space for the others
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user