bitburner-src/markdown/bitburner.singularity.getcrimechance.md

33 lines
823 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Singularity](./bitburner.singularity.md) &gt; [getCrimeChance](./bitburner.singularity.getcrimechance.md)
## Singularity.getCrimeChance() method
Get chance to successfully commit a crime.
<b>Signature:</b>
```typescript
getCrimeChance(crime: CrimeType | `${CrimeType}`): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| crime | [CrimeType](./bitburner.crimetype.md) \| \`${[CrimeType](./bitburner.crimetype.md)<!-- -->}\` | Name of crime. |
<b>Returns:</b>
number
Chance of success at committing the specified crime.
## Remarks
RAM cost: 5 GB \* 16/4/1
This function returns your chance of success at committing the specified crime.