mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 06:32:26 +01:00
1002 B
1002 B
Home > bitburner > Singularity > donateToFaction
Singularity.donateToFaction() method
If you are not in BitNode-4, then you must have Level 3 of Source-File 4 in order to use this function and the RAM cost is doubled.
Attempts to donate money to the specified faction in exchange for reputation. Returns true if you successfully donate the money, and false otherwise.
Signature:
donateToFaction(faction: FactionName, amount: number): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
faction | FactionName | Name of faction to donate to. |
amount | number | Amount of money to donate. |
Returns:
boolean
True if the money was donated, and false otherwise.
Remarks
Singularity - Level 3