From 50d8aa477e964bcfe3ae3ee7c92e4aa2158f596c Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 15 Sep 2024 09:59:21 +0100 Subject: [PATCH] Renamed variable to improve clarity --- project/src/helpers/ItemHelper.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index 4de9c210..ca6a6610 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -1291,13 +1291,13 @@ export class ItemHelper { * @param magazineWithChildCartridges Magazine to add child items to * @param magTemplate Db template of magazine * @param cartridgeTpl Cartridge to add to magazine - * @param minSizePercent % the magazine must be filled to + * @param minSizeMultiplier % the magazine must be filled to */ public fillMagazineWithCartridge( magazineWithChildCartridges: Item[], magTemplate: ITemplateItem, cartridgeTpl: string, - minSizePercent = 0.25, + minSizeMultiplier = 0.25, ): void { // Get cartridge properties and max allowed stack size const cartridgeDetails = this.getItem(cartridgeTpl); @@ -1324,7 +1324,7 @@ export class ItemHelper { } const desiredStackCount = this.randomUtil.getInt( - Math.round(minSizePercent * magazineCartridgeMaxCount), + Math.round(minSizeMultiplier * magazineCartridgeMaxCount), magazineCartridgeMaxCount, );