Remove redundant item added check from value check

This commit is contained in:
Dev 2023-10-12 13:25:13 +01:00
parent db619a30b3
commit 29ffe86caa

View File

@ -90,7 +90,7 @@ export class BotLootGenerator
botInventory,
botRole);
// Meds
// Healing items / Meds
this.addLootFromPool(
this.botLootCacheService.getLootFromCache(botRole, isPmc, LootCacheType.HEALING_ITEMS, botJsonTemplate),
containersBotHasAvailable,
@ -362,7 +362,7 @@ export class BotLootGenerator
}
// Stop adding items to bots pool if rolling total is over total limit
if (totalValueLimitRub > 0 && itemAddedResult === ItemAddedResult.SUCCESS)
if (totalValueLimitRub > 0)
{
currentTotalRub += this.handbookHelper.getTemplatePrice(itemToAddTemplate._id);
if (currentTotalRub > totalValueLimitRub)