bitburner-src/markdown/bitburner.hacknetserversformulas.cacheupgradecost.md

28 lines
748 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) &gt; [cacheUpgradeCost](./bitburner.hacknetserversformulas.cacheupgradecost.md)
## HacknetServersFormulas.cacheUpgradeCost() method
2021-12-09 01:19:07 +01:00
Calculate cost of upgrading hacknet server cache.
<b>Signature:</b>
```typescript
cacheUpgradeCost(startingCache: number, extraCache?: number): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2021-12-09 01:19:07 +01:00
| startingCache | number | starting cache level |
| extraCache | number | amount of levels of cache to purchase (defaults to 1) |
<b>Returns:</b>
number
2021-12-09 01:19:07 +01:00
The calculated cost.