mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-12 17:33:18 +01:00
28 lines
671 B
Markdown
28 lines
671 B
Markdown
<!-- 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
|
|
|
|
Calculate hash cost of an upgrade.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
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.
|
|
|