2021-11-04 01:19:52 +01:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) > [hashUpgradeCost](./bitburner.hacknetserversformulas.hashupgradecost.md)
|
|
|
|
|
|
|
|
## HacknetServersFormulas.hashUpgradeCost() method
|
|
|
|
|
2021-12-09 01:19:07 +01:00
|
|
|
Calculate hash cost of an upgrade.
|
|
|
|
|
2021-11-04 01:19:52 +01:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
hashUpgradeCost(upgName: number, level: number): number;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-12-09 01:19:07 +01:00
|
|
|
| upgName | number | name of the upgrade |
|
|
|
|
| level | number | level of the upgrade |
|
2021-11-04 01:19:52 +01:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
number
|
|
|
|
|
2021-12-09 01:19:07 +01:00
|
|
|
The calculated hash cost.
|
|
|
|
|