2019-03-02 19:08:54 -08:00
|
|
|
getHackingMultipliers() Netscript Function
|
|
|
|
==========================================
|
|
|
|
|
|
|
|
.. js:function:: getHackingMultipliers()
|
|
|
|
|
2023-01-07 11:03:43 +02:00
|
|
|
:RAM cost: 0.25 GB
|
2021-03-12 02:51:56 -05: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-02 19:08:54 -08:00
|
|
|
|
2021-03-12 02:51:56 -05:00
|
|
|
Structure::
|
2019-03-02 19:08:54 -08: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 02:51:56 -05:00
|
|
|
Example:
|
|
|
|
|
|
|
|
.. code-block:: javascript
|
2019-03-02 19:08:54 -08:00
|
|
|
|
2023-01-06 14:43:09 +02:00
|
|
|
const mults = ns.getHackingMultipliers();
|
|
|
|
ns.print(mults.chance);
|
|
|
|
ns.print(mults.growth);
|