Files
bitburner-src/markdown/bitburner.sleeve.getmemoryupgradecost.md

921 B

Home > bitburner > Sleeve > getMemoryUpgradeCost

Sleeve.getMemoryUpgradeCost() method

Get the cost of memory upgrades.

Signature:

getMemoryUpgradeCost(sleeveNumber: number, amount: number): number;

Parameters

Parameter

Type

Description

sleeveNumber

number

Index of the sleeve.

amount

number

Number of upgrades. Must be a positive integer.

Returns:

number

Cost of the upgrades. Return Infinity if the current memory plus the amount of upgrades is greater than 100.

Remarks

RAM cost: 4 GB