diff --git a/project/src/helpers/BotWeaponGeneratorHelper.ts b/project/src/helpers/BotWeaponGeneratorHelper.ts index 738cfebe..885e7f97 100644 --- a/project/src/helpers/BotWeaponGeneratorHelper.ts +++ b/project/src/helpers/BotWeaponGeneratorHelper.ts @@ -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)); } /**