bitburner-src/markdown/bitburner.hacknetserversformulas.cacheupgradecost.md
Olivier Gagnon 14317628e6 formulas doc
2021-12-08 19:19:07 -05:00

748 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 amount of levels of cache to purchase (defaults to 1)

Returns:

number

The calculated cost.