mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-30 12:57:06 +02:00
8 lines
351 B
TypeScript
8 lines
351 B
TypeScript
import { CONSTANTS } from "../../Constants";
|
|
import { currentNodeMults } from "../../BitNode/BitNodeMultipliers";
|
|
import { Person as IPerson } from "@nsdefs";
|
|
|
|
export function repFromDonation(amt: number, person: IPerson): number {
|
|
return (amt / CONSTANTS.DonateMoneyToRepDivisor) * person.mults.faction_rep * currentNodeMults.FactionWorkRepGain;
|
|
}
|