mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 00:17:32 +01:00
13 lines
532 B
ReStructuredText
13 lines
532 B
ReStructuredText
|
donateToFaction() Netscript Function
|
||
|
====================================
|
||
|
|
||
|
.. js:function:: donateToFaction(factionName, donateAmt)
|
||
|
|
||
|
:param string factionName: Name of faction to donate to. CASE-SENSITIVE
|
||
|
:param number donateAmt: Amount of money to donate
|
||
|
|
||
|
If you are not in BitNode-4, then you must have Level 3 of Source-File 4 in order to use this function.
|
||
|
|
||
|
Attempts to donate money to the specified faction in exchange for reputation.
|
||
|
Returns true if you successfully donate the money, and false otherwise.
|