mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 20:37:05 +02:00
1.0 KiB
1.0 KiB
Home > bitburner > HackingFormulas > weakenEffect
HackingFormulas.weakenEffect() method
Calculate the security decrease from a weaken operation. Unlike other hacking formulas, weaken effect depends only on thread count and core count, not on server or player properties. The core bonus formula is 1 + (cores - 1) / 16}.
Signature:
weakenEffect(threads: number, cores?: number): number;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
threads |
number |
Number of threads running weaken. |
|
cores |
number |
(Optional) Number of cores on the host server. Default 1. |
Returns:
number
The security decrease amount.