mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
API: Add donationForRep() to Formulas (#1141)
This commit is contained in:
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -5209,6 +5209,13 @@ interface ReputationFormulas {
|
||||
* @param player - Player info, typically from {@link NS.getPlayer | getPlayer}
|
||||
*/
|
||||
repFromDonation(amount: number, player: Person): number;
|
||||
|
||||
/**
|
||||
* Calculate the donation needed to gain an amount of reputation.
|
||||
* @param reputation - Amount of reputation
|
||||
* @param player - Player info, typically from {@link NS.getPlayer | getPlayer}
|
||||
*/
|
||||
donationForRep(reputation: number, player: Person): number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user