2022-10-21 17:16:00 +02: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
|
|
|
|
|
|
|
|
Calculate hash cost of an upgrade.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
2024-08-22 01:47:26 +02:00
|
|
|
hashUpgradeCost(upgName: string, level: number): number;
|
2022-10-21 17:16:00 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2024-08-22 01:47:26 +02:00
|
|
|
| upgName | string | name of the upgrade |
|
2022-10-21 17:16:00 +02:00
|
|
|
| level | number | level of the upgrade |
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
number
|
|
|
|
|
|
|
|
The calculated hash cost.
|
|
|
|
|