mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 13:13:49 +01:00
671 B
671 B
Home > bitburner > HacknetServersFormulas > hashUpgradeCost
HacknetServersFormulas.hashUpgradeCost() method
Calculate hash cost of an upgrade.
Signature:
hashUpgradeCost(upgName: string, level: number): number;
Parameters
Parameter | Type | Description |
---|---|---|
upgName | string | name of the upgrade |
level | number | level of the upgrade |
Returns:
number
The calculated hash cost.