Add clarifying comment

This commit is contained in:
Dev 2023-06-27 11:22:03 +01:00
parent 7958ef8337
commit 567dc6e289

View File

@ -362,6 +362,7 @@ export class BotLootGenerator
// return true, we are over limit
if (limitCount[idToCheckFor] > itemSpawnLimits[idToCheckFor])
{
// Prevent edge-case of small loot pools and code tries to max-limit-reached item over and over
if (limitCount[idToCheckFor] > itemSpawnLimits[idToCheckFor] * 10)
{
this.logger.warning(this.localisationService.getText("bot-item_spawn_limit_reached_skipping_item", {botRole: botRole, itemName: itemTemplate._name, attempts: limitCount[idToCheckFor]}));