mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-14 03:33:52 +01:00
35 lines
727 B
Markdown
35 lines
727 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.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
getCrimeChance(crime: string): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| crime | string | Name of crime. |
|
|
|
|
<b>Returns:</b>
|
|
|
|
number
|
|
|
|
Chance of success at commiting the specified crime.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 5 GB
|
|
|
|
Singularity - Level 3
|
|
|
|
This function returns your chance of success at commiting the specified crime.
|
|
|