Beispiel #1
0
        public PlanetBuilderService GenerateLife()
        {
            double tempLifeWeight       = planet.Tempature.LifeWeight;
            double atmosphereLifeWeight = planet.Atmosphere.LifeWeight;

            double lifeWeights = tempLifeWeight + atmosphereLifeWeight;



            planet.Biosphere = BioSphere.GetWeightedBiosphere(lifeWeights);

            if (planet.Biosphere.Description != "No native biosphere")
            {
                //RARE GASGIANT WITH POPULATION AND TECHLEVEL
                if (planet.PlanetaryType.Description == "GASGIANT")
                {
                    if (rnd.Next(stellarForgeConfiguration.Odds_GasGiantLife) != 0)
                    {
                        return(this);
                    }
                }

                planet.Population = GetRandomPopulation();
                planet.TechLevel  = GetRandomTechLevel();
            }

            return(this);
        }
Beispiel #2
0
        public MoonBuilderService GeneratePhysicalProperties()
        {
            Moon.Tempature  = GetRandomTemp();
            Moon.Atmosphere = GetRandomAtmosphere();

            Moon.BioSphere = BioSphere.GetWeightedBiosphere(Moon.Tempature.LifeWeight + Moon.Atmosphere.LifeWeight);

            return(this);
        }
Beispiel #3
0
 private BioSphere GetRandomBiosphere()
 {
     return(BioSphere.GetRandomBiosphere(rnd));
 }