BUGFIX: Hacknet level base cost multiplier fixed (#1412)

This commit is contained in:
JamesWilcox-git 2024-06-25 00:40:50 -04:00 committed by GitHub
parent 5a8f0e99af
commit 67cdd57728
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -22,7 +22,7 @@ export function calculateLevelUpgradeCost(startingLevel: number, extraLevels = 1
const mult = HacknetNodeConstants.UpgradeLevelMult; const mult = HacknetNodeConstants.UpgradeLevelMult;
let totalMultiplier = 0; let totalMultiplier = 0;
let currLevel = startingLevel; let currLevel = startingLevel - 1;
for (let i = 0; i < sanitizedLevels; ++i) { for (let i = 0; i < sanitizedLevels; ++i) {
totalMultiplier += Math.pow(mult, currLevel); totalMultiplier += Math.pow(mult, currLevel);
++currLevel; ++currLevel;