mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 17:53:55 +01:00
24 lines
848 B
ReStructuredText
24 lines
848 B
ReStructuredText
getHacknetMultipliers() Netscript Function
|
|
==========================================
|
|
|
|
.. js:function:: getHacknetMultipliers()
|
|
|
|
:RAM cost: 4 GB
|
|
|
|
Returns an object containing the Player's hacknet related multipliers. These multipliers are
|
|
returned in decimal forms, not percentages (e.g. 1.5 instead of 150%). The object has the following 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
|
|
}
|
|
|
|
Example of how this can be used::
|
|
|
|
mults = getHacknetMultipliers();
|
|
print(mults.production);
|
|
print(mults.purchaseCost);
|