mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
API: Expose charged effects of active fragments (#2638)
This commit is contained in:
19
markdown/bitburner.activefragment.chargedeffect.md
Normal file
19
markdown/bitburner.activefragment.chargedeffect.md
Normal file
@@ -0,0 +1,19 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [ActiveFragment](./bitburner.activefragment.md) > [chargedEffect](./bitburner.activefragment.chargedeffect.md)
|
||||
|
||||
## ActiveFragment.chargedEffect property
|
||||
|
||||
This is the raw value of the modifier used to calculate the effect on your multipliers. It may not be a multiplier.
|
||||
|
||||
With fragments that increase a multiplier, this value is a multiplier. For example, with "+x% hacknet production" fragment, a value of 1.25 will multiply the "hacknet\_node\_money" multiplier by 1.25. The UI will show "+25% hacknet production".
|
||||
|
||||
With fragments that decrease a multiplier, you need to invert this value. For example, with "-x% cheaper hacknet costs" fragment, a value of 1.25 means the "hacknet\_node\_purchase\_cost" (and other relevant cost multipliers) will be multiplied by 0.8 (1 / 1.25). The UI will show "20% cheaper hacknet costs".
|
||||
|
||||
With booster fragments, this value is always 1. Booster fragments only boost non-booster fragments. They don't directly boost your multipliers.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
chargedEffect: number;
|
||||
```
|
||||
@@ -37,6 +37,31 @@ Description
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[chargedEffect](./bitburner.activefragment.chargedeffect.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
This is the raw value of the modifier used to calculate the effect on your multipliers. It may not be a multiplier.
|
||||
|
||||
With fragments that increase a multiplier, this value is a multiplier. For example, with "+x% hacknet production" fragment, a value of 1.25 will multiply the "hacknet\_node\_money" multiplier by 1.25. The UI will show "+25% hacknet production".
|
||||
|
||||
With fragments that decrease a multiplier, you need to invert this value. For example, with "-x% cheaper hacknet costs" fragment, a value of 1.25 means the "hacknet\_node\_purchase\_cost" (and other relevant cost multipliers) will be multiplied by 0.8 (1 / 1.25). The UI will show "20% cheaper hacknet costs".
|
||||
|
||||
With booster fragments, this value is always 1. Booster fragments only boost non-booster fragments. They don't directly boost your multipliers.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[highestCharge](./bitburner.activefragment.highestcharge.md)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user