Merge pull request #4211 from fdellwing/patch-2

FACTION: Include BN multiplier in faction donation
This commit is contained in:
hydroflame 2022-10-09 00:26:16 -04:00 committed by GitHub
commit b0ba0b30b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,7 @@
import { CONSTANTS } from "../../Constants";
import { BitNodeMultipliers } from "../../BitNode/BitNodeMultipliers";
import { Person } from "../../PersonObjects/Person";
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;
}