From 67cdd57728b54953e020d6e78ca40706e0764f3c Mon Sep 17 00:00:00 2001 From: JamesWilcox-git <67163660+JamesWilcox-git@users.noreply.github.com> Date: Tue, 25 Jun 2024 00:40:50 -0400 Subject: [PATCH] BUGFIX: Hacknet level base cost multiplier fixed (#1412) --- src/Hacknet/formulas/HacknetNodes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hacknet/formulas/HacknetNodes.ts b/src/Hacknet/formulas/HacknetNodes.ts index f9887736b..21d45e5a1 100644 --- a/src/Hacknet/formulas/HacknetNodes.ts +++ b/src/Hacknet/formulas/HacknetNodes.ts @@ -22,7 +22,7 @@ export function calculateLevelUpgradeCost(startingLevel: number, extraLevels = 1 const mult = HacknetNodeConstants.UpgradeLevelMult; let totalMultiplier = 0; - let currLevel = startingLevel; + let currLevel = startingLevel - 1; for (let i = 0; i < sanitizedLevels; ++i) { totalMultiplier += Math.pow(mult, currLevel); ++currLevel;