v0.44.1 Minor Update - Added Augs to Duplicate Sleeves and updated documentation

This commit is contained in:
danielyxie
2019-03-02 19:08:54 -08:00
committed by danielyxie
parent 9879d07d7c
commit 18d8b2ecd4
213 changed files with 4024 additions and 3405 deletions

View File

@@ -0,0 +1,12 @@
getCoreUpgradeCost() Netscript Function
=======================================
.. js:function:: getCoreUpgradeCost(i, n)
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
:param number n: Number of times to upgrade cores. Must be positive. Rounded to nearest integer
Returns the cost of upgrading the number of cores of the specified Hacknet Node by *n*.
If an invalid value for *n* is provided, then this function returns 0. If the
specified Hacknet Node is already at the max number of cores, then Infinity is returned.

View File

@@ -0,0 +1,12 @@
getLevelUpgradeCost() Netscript Function
========================================
.. js:function:: getLevelUpgradeCost(i, n)
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
:param number n: Number of levels to upgrade. Must be positive. Rounded to nearest integer
Returns the cost of upgrading the specified Hacknet Node by *n* levels.
If an invalid value for *n* is provided, then this function returns 0. If the
specified Hacknet Node is already at max level, then Infinity is returned.

View File

@@ -0,0 +1,18 @@
getNodeStats() Netscript Function
=================================
.. js:function:: getNodeStats(i)
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
Returns an object containing a variety of stats about the specified Hacknet Node::
{
name: Node's name ("hacknet-node-5"),
level: Node's level,
ram: Node's RAM,
cores: Node's number of cores,
production: Node's money earned per second,
timeOnline: Number of seconds since Node has been purchased,
totalProduction: Total number of money Node has produced
}

View File

@@ -0,0 +1,6 @@
getPurchaseNodeCost() Netscript Function
========================================
.. js:function:: getPurchaseNodeCost()
Returns the cost of purchasing a new Hacknet Node

View File

@@ -0,0 +1,12 @@
getRamUpgradeCost() Netscript Function
======================================
.. js:function:: getRamUpgradeCost(i, n)
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
:param number n: Number of times to upgrade RAM. Must be positive. Rounded to nearest integer
Returns the cost of upgrading the RAM of the specified Hacknet Node *n* times.
If an invalid value for *n* is provided, then this function returns 0. If the
specified Hacknet Node is already at max RAM, then Infinity is returned.

View File

@@ -0,0 +1,6 @@
numNodes() Netscript Function
=============================
.. js:function:: numNodes()
Returns the number of Hacknet Nodes you own.

View File

@@ -0,0 +1,11 @@
purchaseNode() Netscript Function
=================================
.. js:function:: purchaseNode()
Purchases a new Hacknet Node. Returns a number with the index of the Hacknet Node.
This index is equivalent to the number at the end of the Hacknet Node's name
(e.g The Hacknet Node named 'hacknet-node-4' will have an index of 4).
If the player cannot afford to purchase a new Hacknet Node then the function
will return -1.

View File

@@ -0,0 +1,14 @@
upgradeCore() Netscript Function
================================
.. js:function:: upgradeCore(i, n)
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
:param number n: Number of cores to purchase. Must be positive. Rounded to nearest integer
Tries to purchase *n* cores for the specified Hacknet Node.
Returns true if it successfully purchases *n* cores for the Hacknet Node or if
it purchases some positive amount and the Node reaches its max number of cores.
Returns false otherwise.

View File

@@ -0,0 +1,14 @@
upgradeLevel() Netscript Function
=================================
.. js:function:: upgradeLevel(i, n)
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
:param number n: Number of levels to purchase. Must be positive. Rounded to nearest integer
Tries to upgrade the level of the specified Hacknet Node by *n*.
Returns true if the Hacknet Node's level is successfully upgraded by *n* or
if it is upgraded by some positive amount and the Node reaches its max level.
Returns false otherwise.

View File

@@ -0,0 +1,16 @@
upgradeRam() Netscript Function
===============================
.. js:function:: upgradeRam(i, n)
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
:param number n: Number of times to upgrade RAM. Must be positive. Rounded to nearest integer
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 :sup:`n`.
Returns true if the Hacknet Node's RAM is successfully upgraded *n* times or if
it is upgraded some positive number of times and the Node reaches it max RAM.
Returns false otherwise.