2019-03-03 04:08:54 +01:00
|
|
|
getHacknetMultipliers() Netscript Function
|
|
|
|
==========================================
|
|
|
|
|
|
|
|
.. js:function:: getHacknetMultipliers()
|
|
|
|
|
|
|
|
:RAM cost: 4 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%).
|
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
|
|
|
|
|
|
|
{
|
|
|
|
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
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
mults = getHacknetMultipliers();
|
|
|
|
print(mults.production);
|
|
|
|
print(mults.purchaseCost);
|