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

36 lines
867 B
Markdown
Raw Normal View History

2021-10-30 12:34:14 -04:00
<!-- 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; [donateToFaction](./bitburner.singularity.donatetofaction.md)
## Singularity.donateToFaction() method
2021-11-03 00:27:21 -04:00
Donate to a faction.
2021-10-30 12:34:14 -04:00
<b>Signature:</b>
```typescript
2021-11-03 00:27:21 -04:00
donateToFaction(faction: string, amount: number): boolean;
2021-10-30 12:34:14 -04:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2021-11-03 00:27:21 -04:00
| faction | string | Name of faction to donate to. |
2021-10-30 12:34:14 -04:00
| amount | number | Amount of money to donate. |
<b>Returns:</b>
boolean
True if the money was donated, and false otherwise.
## Remarks
2021-11-03 00:27:21 -04:00
RAM cost: 5 GB
2021-10-30 15:46:34 -04:00
Singularity - Level 3
2021-10-30 12:34:14 -04:00
2021-11-03 00:27:21 -04:00
Attempts to donate money to the specified faction in exchange for reputation. Returns true if you successfully donate the money, and false otherwise.