2021-11-04 01:19:52 +01:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) > [levelUpgradeCost](./bitburner.hacknetserversformulas.levelupgradecost.md)
|
|
|
|
|
|
|
|
## HacknetServersFormulas.levelUpgradeCost() method
|
|
|
|
|
2021-12-09 01:19:07 +01:00
|
|
|
Calculate cost of upgrading hacknet server level.
|
|
|
|
|
2021-11-04 01:19:52 +01:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
levelUpgradeCost(startingLevel: number, extraLevels?: number, costMult?: number): number;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-12-09 01:19:07 +01:00
|
|
|
| startingLevel | number | starting level |
|
|
|
|
| extraLevels | number | amount of level to purchase (defaults to 1) |
|
|
|
|
| costMult | number | player cost reduction (default to 1) |
|
2021-11-04 01:19:52 +01:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
number
|
|
|
|
|
2021-12-09 01:19:07 +01:00
|
|
|
The calculated cost.
|
|
|
|
|