mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
1.3 KiB
1.3 KiB
Home > bitburner > ReputationFormulas
ReputationFormulas interface
Reputation formulas
Signature:
interface ReputationFormulas
Methods
| Method | Description |
|---|---|
| calculateFavorToRep(favor) | Calculate the total required amount of faction reputation to reach a target favor. |
| calculateRepToFavor(rep) | Calculate the resulting faction favor of a total amount of reputation. (Faction favor is gained whenever you install an Augmentation.) |
| donationForRep(reputation, player) | Calculate the donation needed to gain an amount of reputation. |
| repFromDonation(amount, player) | Calculate how much rep would be gained. |
| sharePower(threads, cpuCores) | Calculate the share power if you call ns.share with the specified number of threads on a server having the specified number of CPU cores. |