bitburner-src/markdown/bitburner.ns.weakenanalyze.md
Olivier Gagnon feb0430aff work on doc
2021-10-30 15:46:34 -04:00

32 lines
735 B
Markdown

<!-- 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; [weakenAnalyze](./bitburner.ns.weakenanalyze.md)
## NS.weakenAnalyze() method
Returns the security decrease that would occur if a weaken with this many threads happened.
<b>Signature:</b>
```typescript
weakenAnalyze(threads: number, cores?: number): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| threads | number | Amount of threads that will be used. |
| cores | number | Optional. The number of cores of the server that would run weaken. |
<b>Returns:</b>
number
The security decrease.
## Remarks
RAM cost: 1 GB