HACKNET: Fix spendHashes ignoring count for Company Favor upgrade (#791) (#792)

This commit is contained in:
aschmider
2023-09-12 09:55:43 +02:00
committed by GitHub
parent 3c42880185
commit c4482a70f9

View File

@@ -569,7 +569,7 @@ export function purchaseHashUpgrade(upgName: string, upgTarget: string, count =
console.error(`Invalid target specified in purchaseHashUpgrade(): ${upgTarget}`);
throw new Error(`'${upgTarget}' is not a company.`);
}
Companies[upgTarget].favor += 5;
Companies[upgTarget].favor += 5 * count;
break;
}
default: