mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
34 lines
852 B
Markdown
34 lines
852 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [donateToFaction](./bitburner.singularity.donatetofaction.md)
|
|
|
|
## Singularity.donateToFaction() method
|
|
|
|
SF4.3 - Donate to a faction.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
donateToFaction(faction: string, amount: number): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| faction | string | Name of faction to donate to. |
|
|
| amount | number | Amount of money to donate. |
|
|
|
|
<b>Returns:</b>
|
|
|
|
boolean
|
|
|
|
True if the money was donated, and false otherwise.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 5 GB
|
|
|
|
Attempts to donate money to the specified faction in exchange for reputation. Returns true if you successfully donate the money, and false otherwise.
|
|
|