2018-01-09 21:48:06 +01:00
|
|
|
Netscript Advanced Functions
|
|
|
|
============================
|
|
|
|
|
|
|
|
These Netscript functions become relevant later on in the game. They are put on a separate page because
|
|
|
|
they contain spoilers for the game.
|
|
|
|
|
|
|
|
getBitNodeMultipliers
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. js:function:: getBitNodeMultipliers()
|
|
|
|
|
|
|
|
Returns an object containing the current BitNode multipliers. This function requires Source-File 5 in order
|
2019-02-14 03:08:18 +01:00
|
|
|
to run. The multipliers are returned in decimal forms (e.g. 1.5 instead of 150%). The multipliers represent
|
2018-01-09 21:48:06 +01:00
|
|
|
the difference between the current BitNode and the original BitNode (BitNode-1). For example, if the
|
|
|
|
*CrimeMoney* multiplier has a value of 0.1, then that means that committing crimes in the current BitNode
|
2019-02-14 03:08:18 +01:00
|
|
|
will only give 10% of the money you would have received in BitNode-1.
|
|
|
|
|
|
|
|
The structure of the returned object is subject to change as BitNode multipliers get added to the game.
|
|
|
|
Refer to the `source code here <https://github.com/danielyxie/bitburner/blob/master/src/BitNode/BitNodeMultipliers.ts>`_
|
|
|
|
to see the name of the BitNode multipliers.
|
2018-01-09 21:48:06 +01:00
|
|
|
|
|
|
|
Example::
|
|
|
|
|
|
|
|
mults = getBitNodeMultipliers();
|
|
|
|
print(mults.ServerMaxMoney);
|
|
|
|
print(mults.HackExpGain);
|
2018-09-11 20:56:23 +02:00
|
|
|
|
|
|
|
getHackTime, getGrowTime, & getWeakenTime
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
The :js:func:`getHackTime`, :js:func:`getGrowTime`, and :js:func:`getWeakenTime`
|
|
|
|
all take an additional third optional parameter for specifying a specific intelligence
|
|
|
|
level to see how that would affect the hack/grow/weaken times. This parameter
|
|
|
|
defaults to your current intelligence level.
|
|
|
|
|
|
|
|
(Intelligence is unlocked after obtaining Source-File 5).
|
|
|
|
|
|
|
|
The function signatures are then::
|
|
|
|
|
|
|
|
getHackTime(hostname/ip[, hackLvl=current level, intLvl=current level])
|
|
|
|
getGrowTime(hostname/ip[, hackLvl=current level, intLvl=current level])
|
|
|
|
getWeakenTime(hostname/ip[, hackLvl=current level, intLvl=current level])
|