Exemple #1
0
        public override float getRadiationDeathRate(PlanetCondition conditions, Colony colony)
        {
            double a   = colony.getRadiationResistent();
            double b   = timeTick(conditions.getTime());
            float  res = (float)Math.Pow(a, b);

            if (res < 0.001)
            {
                float res2 = (float)Math.Pow(a, b);
                res = res2;
            }
            return(res);
        }
Exemple #2
0
 private double GetRadiationResistance(model.Colony colonyInfo)
 {
     return(System.Math.Round(colonyInfo.getRadiationResistent(), 5));
 }