private int CalculatePower() { double bendersPower = Benders.Sum(b => b.TotalPower); int monumentsAffinity = Monuments.Sum(m => m.Affinity); double affinityMultiplier = monumentsAffinity / 100; return((int)(bendersPower * affinityMultiplier)); }
public double GetTotalNationPower() { var totalBendersPower = Benders.Sum(x => x.GetBenderPower()); var bonusMonumentPower = Monuments.Sum(x => x.GetMonumentPower()); if (bonusMonumentPower == 0) { bonusMonumentPower = 1; } var totalPower = totalBendersPower * bonusMonumentPower; return(totalPower); }