Include BN multiplier in faction donation

This commit is contained in:
Fabian Dellwing 2022-10-07 21:28:19 +02:00 committed by GitHub
parent 01f6c6cb7a
commit ea39e5e1f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
} }