Ejemplo n.º 1
0
 public static void CalculateClanIncome(Clan clan, ref ExplainedNumber goldChange, bool applyWithdrawals = false) =>
 goldChange.AddFactor(
     clan.GetPartyBonus(bonuses => bonuses.IncomeMultiplier, null) - 1,
     new TextObject("Additional income for Leaders' INT"));
Ejemplo n.º 2
0
 public static void CalculateClanExpenses(Clan clan, ref ExplainedNumber goldChange, bool applyWithdrawals = false) =>
 goldChange.AddFactor(
     Math.Max(
         clan.GetPartyBonus(bonuses => bonuses.ExpensesMultiplier, null) - 1,
         -Config.Instance.max_bonus_decreas),
     new TextObject("Decreasing expenses for Leaders' INT"));
Ejemplo n.º 3
0
 public static float AddRenown(Clan clan, float value) =>
 value *clan.GetPartyBonus(
     bonuses => bonuses.RenownMultiplier,
     (bonus, name) => Logger.Log("Increase renown by " + bonus *value + " for " + name + "'s SOC", clan.Leader.CharacterObject));