upgradeRam() Netscript Function¶
- 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.
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.