Rename function to help with clarity

This commit is contained in:
Dev 2024-01-19 09:52:56 +00:00
parent 4cb2d8171e
commit f3f008e0ec

View File

@ -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,