mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
Update netscript documentation.
Unfortunately, I haven't used most of the specialty APIs yet, so I'm not intimately familiar with where their documentation might be wrong. I figured some fixes were better than no fixes, and I can always make more fixes later. Fixes #1023.
This commit is contained in:
@@ -11,7 +11,8 @@ ramUpgradeCost() Netscript Function
|
||||
|
||||
..note:: ``startingRam`` is the actual amount of ram, not the amount of levels of ram.
|
||||
|
||||
You must have Source-File 5-1 in order to use this function.
|
||||
If you are not in BitNode-5, then you must have Source-File 5-1 in order to
|
||||
use this function.
|
||||
|
||||
This function calculates the cost of upgrading levels from any level to any level.
|
||||
|
||||
@@ -19,4 +20,4 @@ ramUpgradeCost() Netscript Function
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
formulas.hacknetNodes.ramUpgradeCost(1, 5); // returns: 2095000
|
||||
formulas.hacknetNodes.ramUpgradeCost(1, 5); // returns: 2095000
|
||||
|
||||
Reference in New Issue
Block a user