bitburner-src/markdown/bitburner.hacknetserversformulas.hashupgradecost.md

671 B

Home > bitburner > HacknetServersFormulas > hashUpgradeCost

HacknetServersFormulas.hashUpgradeCost() method

Calculate hash cost of an upgrade.

Signature:

hashUpgradeCost(upgName: number, level: number): number;

Parameters

Parameter Type Description
upgName number name of the upgrade
level number level of the upgrade

Returns:

number

The calculated hash cost.