2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [weakenAnalyze](./bitburner.ns.weakenanalyze.md)
|
|
|
|
|
|
|
|
## NS.weakenAnalyze() method
|
|
|
|
|
|
|
|
Predict the effect of weaken.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
weakenAnalyze(threads: number, cores?: number): number;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| threads | number | Amount of threads that will be used. |
|
2023-02-11 19:18:50 +01:00
|
|
|
| cores | number | _(Optional)_ Optional. The number of cores of the server that would run weaken. |
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
number
|
|
|
|
|
|
|
|
The security decrease.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 1 GB
|
|
|
|
|
|
|
|
Returns the security decrease that would occur if a weaken with this many threads happened.
|
|
|
|
|