Interface ReputationFormulas

Reputation formulas

interface ReputationFormulas {
    calculateFavorToRep(favor): number;
    calculateRepToFavor(rep): number;
    repFromDonation(amount, player): number;
}

Methods

  • Calculate the total required amount of faction reputation to reach a target favor.

    Parameters

    • favor: number

      target faction favor.

    Returns number

    The calculated faction reputation required.

  • Calculate the resulting faction favor of a total amount of reputation. (Faction favor is gained whenever you install an Augmentation.)

    Parameters

    • rep: number

      amount of reputation.

    Returns number

    The calculated faction favor.

  • Calculate how much rep would be gained.

    Parameters

    • amount: number

      Amount of money donated

    • player: Person

      Player info, typically from getPlayer

    Returns number