Beispiel #1
0
 public float Evaluate(Colony colony)
 {
     if (CachedHappiness.TryGetValue(colony, out var value))
     {
         return(value);
     }
     else
     {
         return(0);
     }
 }
        public float Evaluate(Colony colony)
        {
            var cs = ColonyState.GetColonyState(colony);

            if (cs.Difficulty.Name != GameDifficulty.Normal.Name && CachedHappiness.TryGetValue(colony, out var value))
            {
                return(value);
            }
            else
            {
                return(0);
            }
        }