Ejemplo n.º 1
0
        private double CalculateEffectiveTradition(double tradition, LeaderType leaderType)
        {
            switch (leaderType)
            {
            case LeaderType.General:
            case LeaderType.Admiral:
                return(tradition);

            case LeaderType.Conquistador:
            case LeaderType.Explorer:
                return(0.8 * tradition);

            default:
                throw new ArgumentException($"Unknown leader type: {leaderType.ToString()}");
            }
        }