mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
27 lines
752 B
ReStructuredText
27 lines
752 B
ReStructuredText
getHackingMultipliers() Netscript Function
|
|
==========================================
|
|
|
|
.. js:function:: getHackingMultipliers()
|
|
|
|
:RAM cost: 0.25 GB
|
|
:returns: object containing the player's hacking multipliers. These
|
|
multipliers are returned in decimal forms, not percentages (e.g. 1.5
|
|
instead of 150%).
|
|
|
|
Structure::
|
|
|
|
{
|
|
chance: Player's hacking chance multiplier,
|
|
speed: Player's hacking speed multiplier,
|
|
money: Player's hacking money stolen multiplier,
|
|
growth: Player's hacking growth multiplier
|
|
}
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
|
|
const mults = ns.getHackingMultipliers();
|
|
ns.print(mults.chance);
|
|
ns.print(mults.growth);
|