Skip to content

Latest commit

 

History

History
72 lines (34 loc) · 900 Bytes

File metadata and controls

72 lines (34 loc) · 900 Bytes

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.