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); }
public MoonBuilderService GeneratePhysicalProperties() { Moon.Tempature = GetRandomTemp(); Moon.Atmosphere = GetRandomAtmosphere(); Moon.BioSphere = BioSphere.GetWeightedBiosphere(Moon.Tempature.LifeWeight + Moon.Atmosphere.LifeWeight); return(this); }
private BioSphere GetRandomBiosphere() { return(BioSphere.GetRandomBiosphere(rnd)); }