bitburner-src/markdown/bitburner.ns.getbitnodemultipliers.md

48 lines
1.3 KiB
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [getBitNodeMultipliers](./bitburner.ns.getbitnodemultipliers.md)
## NS.getBitNodeMultipliers() method
Get the current Bitnode multipliers.
2021-10-30 18:34:14 +02:00
<b>Signature:</b>
```typescript
2021-10-30 21:46:34 +02:00
getBitNodeMultipliers(): BitNodeMultipliers;
2021-10-30 18:34:14 +02:00
```
<b>Returns:</b>
[BitNodeMultipliers](./bitburner.bitnodemultipliers.md)
Object containing the current BitNode multipliers.
## Remarks
2021-10-30 21:46:34 +02:00
RAM cost: 4 GB
2021-10-30 18:34:14 +02:00
2022-01-08 19:25:06 +01:00
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.
2022-01-08 19:25:06 +01:00
## Example 1
2021-10-30 18:34:14 +02:00
2021-10-30 21:46:34 +02:00
```ts
2022-01-08 19:25:06 +01:00
// NS1:
var mults = getBitNodeMultipliers();
2021-10-30 18:34:14 +02:00
print(mults.ServerMaxMoney);
print(mults.HackExpGain);
```
2022-01-08 19:25:06 +01:00
## Example 2
```ts
// NS2:
const {ServerMaxMoney, HackExpGain} = ns.getBitNodeMultipliers();
print(ServerMaxMoney);
print(HackExpGain);
```