mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 16:53:54 +01:00
755 B
755 B
Home > bitburner > HacknetServersFormulas > cacheUpgradeCost
HacknetServersFormulas.cacheUpgradeCost() method
Calculate cost of upgrading hacknet server cache.
Signature:
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.