upgradeRam() Netscript Function¶
-
upgradeRam
(i, n)¶ RAM cost: 0 GB
Arguments: - i (number) – Index of Hacknet Node. See here for details
- n (number) – Number of times to upgrade RAM. Must be positive. Rounded to nearest integer.
Returns: true
if the upgrade was successful.Tries to upgrade the specified Hacknet Node’s RAM
n
times. Note that each upgrade doubles the Node’s RAM. So this is equivalent to multiplying the Node’s RAM by 2 n.