Parse result inside getRandomizedMagazineCount() to number before returning

This commit is contained in:
Dev 2023-11-24 15:31:16 +00:00
parent 0c658745eb
commit a0016ae2fa

View File

@ -77,7 +77,7 @@ export class BotWeaponGeneratorHelper
// const range = magCounts.max - magCounts.min;
// return this.randomUtil.getBiasedRandomNumber(magCounts.min, magCounts.max, Math.round(range * 0.75), 4);
return this.weightedRandomHelper.getWeightedValue(magCounts.weights);
return Number.parseInt(this.weightedRandomHelper.getWeightedValue(magCounts.weights));
}
/**