why the f*ck we using spaces and not tabs :reee:

This commit is contained in:
CWXDEV 2024-01-12 23:47:41 +00:00
parent 091e4fa41b
commit 22ad266b27

View File

@ -562,14 +562,13 @@ export class RepeatableQuestGenerator
const randomNumbersUsed = [];
for (let i = 0; i < distinctItemsToRetrieveCount; i++)
{
let randomNumber = this.randomUtil.randInt(itemSelection.length);
let randomNumber = this.randomUtil.randInt(itemSelection.length);
while (randomNumbersUsed.includes(randomNumber) && randomNumbersUsed.length !== itemSelection.length)
{
randomNumber = this.randomUtil.randInt(itemSelection.length);
}
while (randomNumbersUsed.includes(randomNumber) && randomNumbersUsed.length !== itemSelection.length)
{
randomNumber = this.randomUtil.randInt(itemSelection.length);
}
randomNumbersUsed.push(randomNumber);
randomNumbersUsed.push(randomNumber);
const itemSelected = itemSelection[randomNumber];
const itemUnitPrice = this.itemHelper.getItemPrice(itemSelected[0]);