mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
v0.44.1 Minor Update - Added Augs to Duplicate Sleeves and updated documentation
This commit is contained in:
12
doc/source/netscript/hacknetnodeapi/getCoreUpgradeCost.rst
Normal file
12
doc/source/netscript/hacknetnodeapi/getCoreUpgradeCost.rst
Normal 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.
|
||||
12
doc/source/netscript/hacknetnodeapi/getLevelUpgradeCost.rst
Normal file
12
doc/source/netscript/hacknetnodeapi/getLevelUpgradeCost.rst
Normal 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.
|
||||
18
doc/source/netscript/hacknetnodeapi/getNodeStats.rst
Normal file
18
doc/source/netscript/hacknetnodeapi/getNodeStats.rst
Normal 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
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
getPurchaseNodeCost() Netscript Function
|
||||
========================================
|
||||
|
||||
.. js:function:: getPurchaseNodeCost()
|
||||
|
||||
Returns the cost of purchasing a new Hacknet Node
|
||||
12
doc/source/netscript/hacknetnodeapi/getRamUpgradeCost.rst
Normal file
12
doc/source/netscript/hacknetnodeapi/getRamUpgradeCost.rst
Normal 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.
|
||||
6
doc/source/netscript/hacknetnodeapi/numNodes.rst
Normal file
6
doc/source/netscript/hacknetnodeapi/numNodes.rst
Normal file
@@ -0,0 +1,6 @@
|
||||
numNodes() Netscript Function
|
||||
=============================
|
||||
|
||||
.. js:function:: numNodes()
|
||||
|
||||
Returns the number of Hacknet Nodes you own.
|
||||
11
doc/source/netscript/hacknetnodeapi/purchaseNode.rst
Normal file
11
doc/source/netscript/hacknetnodeapi/purchaseNode.rst
Normal 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.
|
||||
14
doc/source/netscript/hacknetnodeapi/upgradeCore.rst
Normal file
14
doc/source/netscript/hacknetnodeapi/upgradeCore.rst
Normal 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.
|
||||
14
doc/source/netscript/hacknetnodeapi/upgradeLevel.rst
Normal file
14
doc/source/netscript/hacknetnodeapi/upgradeLevel.rst
Normal 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.
|
||||
16
doc/source/netscript/hacknetnodeapi/upgradeRam.rst
Normal file
16
doc/source/netscript/hacknetnodeapi/upgradeRam.rst
Normal 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.
|
||||
Reference in New Issue
Block a user