mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
28 lines
755 B
Markdown
28 lines
755 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) > [cacheUpgradeCost](./bitburner.hacknetserversformulas.cacheupgradecost.md)
|
|
|
|
## HacknetServersFormulas.cacheUpgradeCost() method
|
|
|
|
Calculate cost of upgrading hacknet server cache.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
cacheUpgradeCost(startingCache: number, extraCache?: number): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| startingCache | number | starting cache level |
|
|
| extraCache | number | _(Optional)_ amount of levels of cache to purchase (defaults to 1) |
|
|
|
|
**Returns:**
|
|
|
|
number
|
|
|
|
The calculated cost.
|
|
|