Skip to content

Latest commit

 

History

History
82 lines (39 loc) · 1.23 KB

File metadata and controls

82 lines (39 loc) · 1.23 KB

Home > bitburner > Singularity > donateToFaction

Singularity.donateToFaction() method

Donate to a faction.

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

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.

You cannot donate to your gang's faction.

The specified faction must offer at least 1 type of work. You can use getFactionWorkTypes to get the list of work types of a faction.