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 PlantLayerSettingsBirch() : base()
{
this.Name = "Birch";
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Birch"), Localizer.DoStr("Population"));
this.DisplayName = Localizer.DoStr("Birch");
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 = "Birch".AddSpacesBetweenCapitals();
}
}
}
@ -56,6 +57,7 @@ namespace Eco.Mods.Organisms
static TreeSpecies species;
[Ecopedia("Plants", "Trees", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
[Tag("Plants")]
public partial class BirchSpecies : TreeSpecies
{
public BirchSpecies() : base()
@ -63,6 +65,8 @@ namespace Eco.Mods.Organisms
species = this;
this.InstanceType = typeof(Birch);
this.SetDefaultProperties();
// Info
this.Decorative = false;
this.Name = "Birch";
@ -84,11 +88,11 @@ namespace Eco.Mods.Organisms
this.ResourceBonusAtGrowth = 0.9f;
// Visuals
// Climate
this.ReleasesCO2TonsPerDay = -0.1f;
this.ReleasesCO2TonsPerDay = -0.075f;
// 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.1f });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "FertileGround", ConsumedCapacityPerPop = 10 });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 30 });
@ -102,8 +106,9 @@ namespace Eco.Mods.Organisms
this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20;
}
partial void SetDefaultProperties();
}
}
}

View file

@ -18,11 +18,11 @@ namespace Eco.Mods.WorldLayers
public PlantLayerSettingsCedar() : base()
{
this.Name = "Cedar";
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Cedar"), Localizer.DoStr("Population"));
this.DisplayName = Localizer.DoStr("Cedar");
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 = "Cedar".AddSpacesBetweenCapitals();
}
}
}
@ -56,6 +57,7 @@ namespace Eco.Mods.Organisms
static TreeSpecies species;
[Ecopedia("Plants", "Trees", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
[Tag("Plants")]
public partial class CedarSpecies : TreeSpecies
{
public CedarSpecies() : base()
@ -63,6 +65,8 @@ namespace Eco.Mods.Organisms
species = this;
this.InstanceType = typeof(Cedar);
this.SetDefaultProperties();
// Info
this.Decorative = false;
this.Name = "Cedar";
@ -84,11 +88,11 @@ namespace Eco.Mods.Organisms
this.ResourceBonusAtGrowth = 0.9f;
// Visuals
// Climate
this.ReleasesCO2TonsPerDay = -0.1f;
this.ReleasesCO2TonsPerDay = -0.075f;
// 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.1f });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "FertileGround", ConsumedCapacityPerPop = 10 });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 30 });
@ -102,8 +106,9 @@ namespace Eco.Mods.Organisms
this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20;
}
partial void SetDefaultProperties();
}
}
}

View file

@ -18,11 +18,11 @@ namespace Eco.Mods.WorldLayers
public PlantLayerSettingsCeiba() : base()
{
this.Name = "Ceiba";
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Ceiba"), Localizer.DoStr("Population"));
this.DisplayName = Localizer.DoStr("Ceiba");
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 = "Ceiba".AddSpacesBetweenCapitals();
}
}
}
@ -56,6 +57,7 @@ namespace Eco.Mods.Organisms
static TreeSpecies species;
[Ecopedia("Plants", "Trees", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
[Tag("Plants")]
public partial class CeibaSpecies : TreeSpecies
{
public CeibaSpecies() : base()
@ -63,6 +65,8 @@ namespace Eco.Mods.Organisms
species = this;
this.InstanceType = typeof(Ceiba);
this.SetDefaultProperties();
// Info
this.Decorative = false;
this.Name = "Ceiba";
@ -72,7 +76,7 @@ namespace Eco.Mods.Organisms
// Generation
this.Height = 1;
// Food
this.CalorieValue = 15;
this.CalorieValue = 30;
// Resources
this.PostHarvestingGrowth = 0;
this.ScythingKills = false;
@ -84,15 +88,15 @@ namespace Eco.Mods.Organisms
this.ResourceBonusAtGrowth = 0.9f;
// Visuals
// Climate
this.ReleasesCO2TonsPerDay = -0.2f;
this.ReleasesCO2TonsPerDay = -0.15f;
// 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.0f, MaxResourceContent = 1.0f });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "FertileGround", ConsumedCapacityPerPop = 4 });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 40 });
this.BlanketSpawnPercent = 0.5f;
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 10 });
this.BlanketSpawnPercent = 0.7f;
this.IdealTemperatureRange = new Range(0.65f, 0.75f);
this.IdealMoistureRange = new Range(0.75f, 0.95f);
this.IdealWaterRange = new Range(0, 0.1f);
@ -102,8 +106,9 @@ namespace Eco.Mods.Organisms
this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20;
}
partial void SetDefaultProperties();
}
}
}

View file

@ -18,11 +18,11 @@ namespace Eco.Mods.WorldLayers
public PlantLayerSettingsJoshua() : base()
{
this.Name = "Joshua";
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Joshua"), Localizer.DoStr("Population"));
this.DisplayName = Localizer.DoStr("Joshua");
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 = "Joshua".AddSpacesBetweenCapitals();
}
}
}
@ -56,6 +57,7 @@ namespace Eco.Mods.Organisms
static TreeSpecies species;
[Ecopedia("Plants", "Trees", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
[Tag("Plants")]
public partial class JoshuaSpecies : TreeSpecies
{
public JoshuaSpecies() : base()
@ -63,6 +65,8 @@ namespace Eco.Mods.Organisms
species = this;
this.InstanceType = typeof(Joshua);
this.SetDefaultProperties();
// Info
this.Decorative = false;
this.Name = "Joshua";
@ -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.0f, MaxResourceContent = 1.0f });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "FertileGround", ConsumedCapacityPerPop = 4 });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 30 });
@ -102,8 +106,9 @@ namespace Eco.Mods.Organisms
this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20;
}
partial void SetDefaultProperties();
}
}
}

View file

@ -18,11 +18,11 @@ namespace Eco.Mods.WorldLayers
public PlantLayerSettingsOak() : base()
{
this.Name = "Oak";
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Oak"), Localizer.DoStr("Population"));
this.DisplayName = Localizer.DoStr("Oak");
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 = "Oak".AddSpacesBetweenCapitals();
}
}
}
@ -56,6 +57,7 @@ namespace Eco.Mods.Organisms
static TreeSpecies species;
[Ecopedia("Plants", "Trees", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
[Tag("Plants")]
public partial class OakSpecies : TreeSpecies
{
public OakSpecies() : base()
@ -63,6 +65,8 @@ namespace Eco.Mods.Organisms
species = this;
this.InstanceType = typeof(Oak);
this.SetDefaultProperties();
// Info
this.Decorative = false;
this.Name = "Oak";
@ -84,11 +88,11 @@ namespace Eco.Mods.Organisms
this.ResourceBonusAtGrowth = 0.9f;
// Visuals
// Climate
this.ReleasesCO2TonsPerDay = -0.2f;
this.ReleasesCO2TonsPerDay = -0.15f;
// 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 = 20 });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 50 });
@ -102,8 +106,9 @@ namespace Eco.Mods.Organisms
this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20;
}
partial void SetDefaultProperties();
}
}
}

View file

@ -18,11 +18,11 @@ namespace Eco.Mods.WorldLayers
public PlantLayerSettingsRedwood() : base()
{
this.Name = "Redwood";
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Redwood"), Localizer.DoStr("Population"));
this.DisplayName = Localizer.DoStr("Redwood");
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 = "Redwood".AddSpacesBetweenCapitals();
}
}
}
@ -56,6 +57,7 @@ namespace Eco.Mods.Organisms
static TreeSpecies species;
[Ecopedia("Plants", "Trees", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
[Tag("Plants")]
public partial class RedwoodSpecies : TreeSpecies
{
public RedwoodSpecies() : base()
@ -63,6 +65,8 @@ namespace Eco.Mods.Organisms
species = this;
this.InstanceType = typeof(Redwood);
this.SetDefaultProperties();
// Info
this.Decorative = false;
this.Name = "Redwood";
@ -84,11 +88,11 @@ namespace Eco.Mods.Organisms
this.ResourceBonusAtGrowth = 0.9f;
// Visuals
// Climate
this.ReleasesCO2TonsPerDay = -0.2f;
this.ReleasesCO2TonsPerDay = -0.15f;
// 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.7f });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "FertileGround", ConsumedCapacityPerPop = 20 });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 26 });
@ -102,8 +106,9 @@ namespace Eco.Mods.Organisms
this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20;
}
partial void SetDefaultProperties();
}
}
}

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();
}
}
}