Home > bitburner > HacknetServersFormulas > hashUpgradeCost
Calculate hash cost of an upgrade.
Signature:
hashUpgradeCost(upgName: string, level: number): number;
Parameter | Type | Description |
---|---|---|
upgName | string | name of the upgrade |
level | number | level of the upgrade |
Returns:
number
The calculated hash cost.