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: trueif the upgrade was successful.Tries to upgrade the specified Hacknet Node’s RAM
ntimes. Note that each upgrade doubles the Node’s RAM. So this is equivalent to multiplying the Node’s RAM by 2 n.