2019-03-03 04:08:54 +01:00
|
|
|
getHackingMultipliers() Netscript Function
|
|
|
|
==========================================
|
|
|
|
|
|
|
|
.. js:function:: getHackingMultipliers()
|
|
|
|
|
|
|
|
:RAM cost: 4 GB
|
2021-03-12 08:51:56 +01:00
|
|
|
:returns: object containing the player's hacking multipliers. These
|
|
|
|
multipliers are returned in decimal forms, not percentages (e.g. 1.5
|
|
|
|
instead of 150%).
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
Structure::
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
Example:
|
|
|
|
|
|
|
|
.. code-block:: javascript
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
mults = getHackingMultipliers();
|
|
|
|
print(mults.chance);
|
|
|
|
print(mults.growth);
|