From f3f008e0ec1c018353076be6f47d4b103c1e5eba Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 19 Jan 2024 09:52:56 +0000 Subject: [PATCH] Rename function to help with clarity --- project/src/generators/BotLootGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/generators/BotLootGenerator.ts b/project/src/generators/BotLootGenerator.ts index be823976..ca175f27 100644 --- a/project/src/generators/BotLootGenerator.ts +++ b/project/src/generators/BotLootGenerator.ts @@ -305,7 +305,7 @@ export class BotLootGenerator let fitItemIntoContainerAttempts = 0; for (let i = 0; i < totalItemCount; i++) { - const itemToAddTemplate = this.getRandomItemFromPoolByRole(pool, botRole); + const itemToAddTemplate = this.getRandomItemFromPoolByBotRole(pool, botRole); const id = this.hashUtil.generate(); let itemsToAdd: Item[] = [{ _id: id, @@ -476,7 +476,7 @@ export class BotLootGenerator * @param isPmc Is the bot being created a pmc * @returns ITemplateItem object */ - protected getRandomItemFromPoolByRole(pool: ITemplateItem[], botRole: string): ITemplateItem + protected getRandomItemFromPoolByBotRole(pool: ITemplateItem[], botRole: string): ITemplateItem { const itemIndex = this.randomUtil.getBiasedRandomNumber( 0,