Commnent improvement
This commit is contained in:
parent
104fd03b39
commit
6d84dbb2d4
@ -390,7 +390,7 @@ export class BotLootGenerator
|
|||||||
{
|
{
|
||||||
if (this.itemHasReachedSpawnLimit(itemToAddTemplate, botRole, itemSpawnLimits))
|
if (this.itemHasReachedSpawnLimit(itemToAddTemplate, botRole, itemSpawnLimits))
|
||||||
{
|
{
|
||||||
// Only remove if pool has some other items to pick
|
// Remove item from pool to prevent it being picked again
|
||||||
delete pool[weightedItemTpl];
|
delete pool[weightedItemTpl];
|
||||||
|
|
||||||
i--;
|
i--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user