bitburner-src/markdown/bitburner.hacknetserversformulas.hashupgradecost.md
omuretsu 06a985bdf8 Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
2022-10-21 11:16:00 -04:00

28 lines
677 B
Markdown

<!-- 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
Calculate hash cost of an upgrade.
<b>Signature:</b>
```typescript
hashUpgradeCost(upgName: number, level: number): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| upgName | number | name of the upgrade |
| level | number | level of the upgrade |
<b>Returns:</b>
number
The calculated hash cost.