Rename function to help with clarity
This commit is contained in:
parent
4cb2d8171e
commit
f3f008e0ec
@ -305,7 +305,7 @@ export class BotLootGenerator
|
|||||||
let fitItemIntoContainerAttempts = 0;
|
let fitItemIntoContainerAttempts = 0;
|
||||||
for (let i = 0; i < totalItemCount; i++)
|
for (let i = 0; i < totalItemCount; i++)
|
||||||
{
|
{
|
||||||
const itemToAddTemplate = this.getRandomItemFromPoolByRole(pool, botRole);
|
const itemToAddTemplate = this.getRandomItemFromPoolByBotRole(pool, botRole);
|
||||||
const id = this.hashUtil.generate();
|
const id = this.hashUtil.generate();
|
||||||
let itemsToAdd: Item[] = [{
|
let itemsToAdd: Item[] = [{
|
||||||
_id: id,
|
_id: id,
|
||||||
@ -476,7 +476,7 @@ export class BotLootGenerator
|
|||||||
* @param isPmc Is the bot being created a pmc
|
* @param isPmc Is the bot being created a pmc
|
||||||
* @returns ITemplateItem object
|
* @returns ITemplateItem object
|
||||||
*/
|
*/
|
||||||
protected getRandomItemFromPoolByRole(pool: ITemplateItem[], botRole: string): ITemplateItem
|
protected getRandomItemFromPoolByBotRole(pool: ITemplateItem[], botRole: string): ITemplateItem
|
||||||
{
|
{
|
||||||
const itemIndex = this.randomUtil.getBiasedRandomNumber(
|
const itemIndex = this.randomUtil.getBiasedRandomNumber(
|
||||||
0,
|
0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user