mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
1.4 KiB
1.4 KiB
Home > bitburner > NS > getBitNodeMultipliers
NS.getBitNodeMultipliers() method
Get the current BitNode multipliers.
Signature:
getBitNodeMultipliers(n?: number, lvl?: number): BitNodeMultipliers;
Parameters
Parameter | Type | Description |
---|---|---|
n | number | (Optional) |
lvl | number | (Optional) |
Returns:
Object containing the current BitNode multipliers.
Remarks
RAM cost: 4 GB
Returns an object containing the current (or supplied) BitNode multipliers. This function requires you to be in BitNode 5 or have Source-File 5 in order to run. The multipliers are returned in decimal forms (e.g. 1.5 instead of 150%). The multipliers represent the difference between the current BitNode and the original BitNode (BitNode-1).
For example, if the CrimeMoney multiplier has a value of 0.1, then that means that committing crimes in the current BitNode will only give 10% of the money you would have received in BitNode-1.
Example
const mults = ns.getBitNodeMultipliers();
ns.tprint(`ServerMaxMoney: ${mults.ServerMaxMoney}`);
ns.tprint(`HackExpGain: ${mults.HackExpGain}`);