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) > [HacknetNodesFormulas](./bitburner.hacknetnodesformulas.md) > [levelUpgradeCost](./bitburner.hacknetnodesformulas.levelupgradecost.md)
|
|
|
|
|
|
|
|
## HacknetNodesFormulas.levelUpgradeCost() method
|
|
|
|
|
|
|
|
Calculate cost of upgrading hacknet node level.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
levelUpgradeCost(startingLevel: number, extraLevels?: number, costMult?: number): number;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| startingLevel | number | starting level |
|
2023-02-11 19:18:50 +01:00
|
|
|
| extraLevels | number | _(Optional)_ amount of level to purchase (defaults to 1) |
|
|
|
|
| costMult | number | _(Optional)_ player cost reduction (default to 1) |
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
number
|
|
|
|
|
|
|
|
The calculated cost.
|
|
|
|
|