Stop addAmmoIntoEquipmentSlots() from adding ammo if item cannot find container to add item to

This commit is contained in:
Dev 2023-11-25 10:04:17 +00:00
parent 4057301953
commit 0b57fe3a5b

View File

@ -136,7 +136,7 @@ export class BotWeaponGeneratorHelper
{
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
break;