This commit is contained in:
Hactarus 2021-04-16 15:05:32 +00:00
parent 05aac4077b
commit 20806f7f29
14 changed files with 465 additions and 389 deletions

View file

@ -18,11 +18,11 @@ namespace Eco.Mods.WorldLayers
public PlantLayerSettingsSaguaroCactus() : base()
{
this.Name = "SaguaroCactus";
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Saguaro Cactus"), Localizer.DoStr("Population"));
this.DisplayName = Localizer.DoStr("Saguaro Cactus");
this.InitMultiplier = 1;
this.SyncToClient = false;
this.Range = new Range(0f, 1f);
this.RenderRange = new Range(0f, 0.05f);
this.OverrideRenderRange = new Range(0f, 0.05f);
this.MinColor = new Color(1f, 1f, 1f);
this.MaxColor = new Color(0f, 1f, 0f);
this.SumRelevant = true;
@ -31,6 +31,7 @@ namespace Eco.Mods.WorldLayers
this.Category = WorldLayerCategory.Plant;
this.ValueType = WorldLayerValueType.FillRate;
this.AreaDescription = "";
this.Subcategory = "SaguaroCactus".AddSpacesBetweenCapitals();
}
}
}
@ -56,6 +57,7 @@ namespace Eco.Mods.Organisms
static TreeSpecies species;
[Ecopedia("Plants", "Plants", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
[Tag("Plants")]
public partial class SaguaroCactusSpecies : TreeSpecies
{
public SaguaroCactusSpecies() : base()
@ -63,6 +65,8 @@ namespace Eco.Mods.Organisms
species = this;
this.InstanceType = typeof(SaguaroCactus);
this.SetDefaultProperties();
// Info
this.Decorative = false;
this.Name = "SaguaroCactus";
@ -84,11 +88,11 @@ namespace Eco.Mods.Organisms
this.ResourceBonusAtGrowth = 0.9f;
// Visuals
// Climate
this.ReleasesCO2TonsPerDay = -0.05f;
this.ReleasesCO2TonsPerDay = -0.0375f;
// WorldLayers
this.MaxGrowthRate = 0.02f;
this.MaxDeathRate = 0.01f;
this.SpreadRate = 0.001f;
this.SpreadRate = 0.0001f;
this.ResourceConstraints.Add(new ResourceConstraint() { LayerName = "SoilMoisture", HalfSpeedConcentration = 0.1f, MaxResourceContent = 0.2f });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "FertileGround", ConsumedCapacityPerPop = 4 });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 15 });
@ -102,8 +106,9 @@ namespace Eco.Mods.Organisms
this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20;
}
partial void SetDefaultProperties();
}
}
}