Exemple #1
0
        public static void ScaleLevels()
        {
            Settings.MinLevel = Mobs.Aggregate((m1, m2) => m1.Level < m2.Level ? m1 : m2).Level;
            Settings.MaxLevel = Mobs.Aggregate((m1, m2) => m1.Level > m2.Level ? m1 : m2).Level;

            foreach (Town t in Towns)
            {
                t.Level = (float)GenericOperations.GetProportion(Settings.MinLevel, Settings.MaxLevel, t.LevelRatio);
                t.InitializeEstablishments();
            }
        }
Exemple #2
0
        private double CalculateMean()
        {
            double levelRatio = GenericOperations.GetRatio(Settings.MinLevel, Settings.MaxLevel, Level);

            return(GenericOperations.GetProportion(Settings.MinEncounters, Settings.MaxEncounters, levelRatio));
        }