diff --git a/app/features/build-analyzer/core/stats.ts b/app/features/build-analyzer/core/stats.ts index edf902f99..442cc46e8 100644 --- a/app/features/build-analyzer/core/stats.ts +++ b/app/features/build-analyzer/core/stats.ts @@ -223,7 +223,12 @@ function subWeaponInkConsumptionPercentage(args: StatFunctionInput) { return { modifiedBy: "ISS" as const, baseValue: roundToNDecimalPlaces(args.subWeaponParams.InkConsume * 100), - value: roundToNDecimalPlaces(subWeaponConsume(args).inkConsume * 100), + value: roundToNDecimalPlaces( + // + 0.004 is a hack to avoid situation where the value is e.g. 50.0005 + // -> rounds to 50% so it appears you can throw two subs + // which is not correct so we force the round upwards + subWeaponConsume(args).inkConsume * 100 + 0.0045 + ), }; }