From ebae95dd4a58cc5a57864e481295c5c4d76b51b2 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Tue, 26 Jul 2022 08:12:59 -0400 Subject: [PATCH] Fix grafting times --- src/PersonObjects/Grafting/GraftableAugmentation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PersonObjects/Grafting/GraftableAugmentation.ts b/src/PersonObjects/Grafting/GraftableAugmentation.ts index 6875bbfc4..5a59e4595 100644 --- a/src/PersonObjects/Grafting/GraftableAugmentation.ts +++ b/src/PersonObjects/Grafting/GraftableAugmentation.ts @@ -23,7 +23,7 @@ export class GraftableAugmentation { get time(): number { // Time = 1 hour * log_2(sum(aug multipliers) || 1) + 30 minutes - const antiLog = Math.max(sum(Object.values(this.augmentation.mults)), 1); + const antiLog = Math.max(sum(Object.values(this.augmentation.mults).filter((x) => x !== 1)), 1); const mult = Math.log2(antiLog); return (CONSTANTS.AugmentationGraftingTimeBase * mult + CONSTANTS.MillisecondsPerHalfHour) / 2;