mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
Merge pull request #4211 from fdellwing/patch-2
FACTION: Include BN multiplier in faction donation
This commit is contained in:
commit
b0ba0b30b5
@ -1,6 +1,7 @@
|
|||||||
import { CONSTANTS } from "../../Constants";
|
import { CONSTANTS } from "../../Constants";
|
||||||
|
import { BitNodeMultipliers } from "../../BitNode/BitNodeMultipliers";
|
||||||
import { Person } from "../../PersonObjects/Person";
|
import { Person } from "../../PersonObjects/Person";
|
||||||
|
|
||||||
export function repFromDonation(amt: number, person: Person): number {
|
export function repFromDonation(amt: number, person: Person): number {
|
||||||
return (amt / CONSTANTS.DonateMoneyToRepDivisor) * person.mults.faction_rep;
|
return (amt / CONSTANTS.DonateMoneyToRepDivisor) * person.mults.faction_rep * BitNodeMultipliers.FactionWorkRepGain;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user