bitburner-src/doc/source/netscript/basicfunctions/getHacknetMultipliers.rst

28 lines
851 B
ReStructuredText
Raw Normal View History

getHacknetMultipliers() Netscript Function
==========================================
.. js:function:: getHacknetMultipliers()
2023-01-07 10:03:43 +01:00
:RAM cost: 0.25 GB
2021-03-12 08:51:56 +01:00
:returns: object containing the player's hacknet multipliers. These
multipliers are returned in decimal forms, not percentages (e.g. 1.5
instead of 150%).
2021-03-12 08:51:56 +01:00
Structure::
{
production: Player's hacknet production multiplier,
purchaseCost: Player's hacknet purchase cost multiplier,
ramCost: Player's hacknet ram cost multiplier,
coreCost: Player's hacknet core cost multiplier,
levelCost: Player's hacknet level cost multiplier
}
2021-03-12 08:51:56 +01:00
Example:
.. code-block:: javascript
2023-01-06 13:43:09 +01:00
const mults = ns.getHacknetMultipliers();
ns.print(mults.production);
ns.print(mults.purchaseCost);