mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
34 lines
766 B
Markdown
34 lines
766 B
Markdown
<!-- 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.
|
|
|
|
<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
|
|
|
|
Returns the security decrease that would occur if a weaken with this many threads happened.
|
|
|