mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
854 B
854 B
Home > bitburner > Singularity > donateToFaction
Singularity.donateToFaction() method
Donate to a faction.
Signature:
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. |
Returns:
boolean
True if the money was donated, and false otherwise.
Remarks
RAM cost: 5 GB * 16/4/1
Attempts to donate money to the specified faction in exchange for reputation. Returns true if you successfully donate the money, and false otherwise.