bitburner-src/markdown/bitburner.ns.getbitnodemultipliers.md
omuretsu 06a985bdf8 Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
2022-10-21 11:16:00 -04:00

1.3 KiB

Home > bitburner > NS > getBitNodeMultipliers

NS.getBitNodeMultipliers() method

Get the current Bitnode multipliers.

Signature:

getBitNodeMultipliers(): BitNodeMultipliers;

Returns:

BitNodeMultipliers

Object containing the current BitNode multipliers.

Remarks

RAM cost: 4 GB

Returns an object containing the current 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 1

// NS1:
var mults = getBitNodeMultipliers();
print(mults.ServerMaxMoney);
print(mults.HackExpGain);

Example 2

// NS2:
const {ServerMaxMoney, HackExpGain} = ns.getBitNodeMultipliers();
print(ServerMaxMoney);
print(HackExpGain);