mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 01:47:33 +01:00
33 lines
817 B
Markdown
33 lines
817 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getCrimeChance](./bitburner.singularity.getcrimechance.md)
|
|
|
|
## Singularity.getCrimeChance() method
|
|
|
|
Get chance to successfully commit a crime.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getCrimeChance(crime: CrimeType | `${CrimeType}`): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| crime | [CrimeType](./bitburner.crimetype.md) \| \`${[CrimeType](./bitburner.crimetype.md)<!-- -->}\` | Name of crime. |
|
|
|
|
**Returns:**
|
|
|
|
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.
|
|
|