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

28 lines
677 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) &gt; [hashUpgradeCost](./bitburner.hacknetserversformulas.hashupgradecost.md)
## HacknetServersFormulas.hashUpgradeCost() method
2021-12-09 01:19:07 +01:00
Calculate hash cost of an upgrade.
<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 |
<b>Returns:</b>
number
2021-12-09 01:19:07 +01:00
The calculated hash cost.