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

@ -5,15 +5,18 @@
"HoursPlayedToBeActiveDemographic": 0.5, "HoursPlayedToBeActiveDemographic": 0.5,
"DayRangeForAbandonedDemographic": 7.0, "DayRangeForAbandonedDemographic": 7.0,
"HoursPlayedToBeAbandonedDemographic": 0.0, "HoursPlayedToBeAbandonedDemographic": 0.0,
"CitizenAgeForAbandonedDemographic": 24.0,
"MinutesBetweenCivicsUpdates": 5.0, "MinutesBetweenCivicsUpdates": 5.0,
"AllowInvalidCivicContainerTimeInMinutes": 20.0, "AllowInvalidCivicContainerTimeInMinutes": 20.0,
"WageFrequencyMinutes": 360.0, "RecurringTransferFrequency": 30.0,
"AllowLawsToPreventLoginOrPlay": false, "AllowLawsToPreventLoginOrPlay": false,
"BasicElectionSettings": { "BasicElectionSettings": {
"MaximumElectionHours": 24.0, "MaximumElectionHours": 24.0,
"MinimumPercentOfEligibleVotersRequired": 10.0, "MinimumPercentOfEligibleVotersRequired": 10.0,
"EndElectionEarlyWhenThisPercentHaveVoted": 95.0,
"MinimumDaysBetweenElectionsOfThisType": 0.0, "MinimumDaysBetweenElectionsOfThisType": 0.0,
"EndElectionEarlyWhenThisPercentHaveVoted": 95.0,
"PercentOfAllVotersToInstantWin": 51.0,
"PercentOfAllVotersToInstantLose": 51.0,
"AnonymousVoting": false "AnonymousVoting": false
} }
} }

2
Configs/EcoSim.eco.template Normal file → Executable file
View file

@ -22,7 +22,7 @@
"MaxTemperatureChangePerDay": 1.5, "MaxTemperatureChangePerDay": 1.5,
"TemperaturesRiseAtCO2ppm": 340.0, "TemperaturesRiseAtCO2ppm": 340.0,
"CO2ppmPerDegreeTemperatureRise": 20.0, "CO2ppmPerDegreeTemperatureRise": 20.0,
"MaxCO2PerDayFromAnimals": 10.0, "MaxCO2PerDayFromAnimals": 25.0,
"MinCO2PerDayFromPlants": -500.0, "MinCO2PerDayFromPlants": -500.0,
"PollutionPerTailingPerTick": 0.016, "PollutionPerTailingPerTick": 0.016,
"MaxDebrisBlocks": 1.0 "MaxDebrisBlocks": 1.0

3
Configs/Economy.eco.template Executable file
View file

@ -0,0 +1,3 @@
{
"RentEnabled": true
}

6
Configs/Network.eco.template Normal file → Executable file
View file

@ -1,16 +1,18 @@
{ {
"PublicServer": false, "PublicServer": false,
"Playtime": "", "Playtime": "",
"DiscordAddress": "",
"Password": "", "Password": "",
"DiscordAddress": "",
"Description": "", "Description": "",
"DetailedDescription": "", "DetailedDescription": "",
"ServerCategory": "None", "ServerCategory": "None",
"IPAddress": "Any", "IPAddress": "Any",
"WebServerUrl": "",
"RemoteAddress": "", "RemoteAddress": "",
"GameServerPort": 3000, "GameServerPort": 3000,
"WebServerPort": 3001, "WebServerPort": 3001,
"Rate": 20, "Rate": 20,
"MaxConnections": -1, "MaxConnections": -1,
"UPnPEnabled": true "UPnPEnabled": true,
"RelayServerAddress": ""
} }

1
Configs/Storage.eco.template Normal file → Executable file
View file

@ -2,5 +2,6 @@
"SaveName": "Game", "SaveName": "Game",
"SaveFrequency": 60, "SaveFrequency": 60,
"CleanupFilesOnExceptions": false, "CleanupFilesOnExceptions": false,
"UseCacheForDBQueries": true,
"StorageDirectory": "Storage" "StorageDirectory": "Storage"
} }

View file

@ -1,32 +1,9 @@
{ {
"ConfigVersion": 1,
"UseWaste": false, "UseWaste": false,
"MaxRepFromOnePerson": 30.0, "MaxRepFromOnePerson": 30.0,
"MinRepFromOnePerson": -10.0, "MinRepFromOnePerson": -10.0,
"AllowDebugCalls": false, "AllowDebugCalls": false,
"WhiteList": {
"System.String": {
"$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib",
"$values": []
}
},
"BlackList": {
"System.String": {
"$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib",
"$values": []
}
},
"MuteList": {
"System.String": {
"$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib",
"$values": []
}
},
"Admins": {
"System.String": {
"$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib",
"$values": []
}
},
"Reputations": { "Reputations": {
"Eco.Gameplay.Economy.ReputationTitle": { "Eco.Gameplay.Economy.ReputationTitle": {
"$type": "System.Collections.Generic.List`1[[Eco.Gameplay.Economy.ReputationTitle, Eco.Gameplay]], System.Private.CoreLib", "$type": "System.Collections.Generic.List`1[[Eco.Gameplay.Economy.ReputationTitle, Eco.Gameplay]], System.Private.CoreLib",
@ -140,5 +117,39 @@
"y": 63, "y": 63,
"z": 698 "z": 698
}, },
"IgnoreVersionMismatch": false "IgnoreVersionMismatch": false,
"UserPermission": {
"WhiteList": {
"Collection": {
"System.String": {
"$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib",
"$values": []
}
}
},
"BlackList": {
"Collection": {
"Eco.Gameplay.Players.TimeUser": {
"$type": "System.Collections.Generic.List`1[[Eco.Gameplay.Players.TimeUser, Eco.Gameplay]], System.Private.CoreLib",
"$values": []
}
}
},
"MuteList": {
"Collection": {
"Eco.Gameplay.Players.TimeUser": {
"$type": "System.Collections.Generic.List`1[[Eco.Gameplay.Players.TimeUser, Eco.Gameplay]], System.Private.CoreLib",
"$values": []
}
}
},
"Admins": {
"Collection": {
"System.String": {
"$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib",
"$values": []
}
}
}
}
} }

657
Configs/WorldGenerator.eco.template Normal file → Executable file

File diff suppressed because it is too large Load diff

View file

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

View file

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

View file

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

View file

@ -18,11 +18,11 @@ namespace Eco.Mods.WorldLayers
public PlantLayerSettingsJoshua() : base() public PlantLayerSettingsJoshua() : base()
{ {
this.Name = "Joshua"; this.Name = "Joshua";
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Joshua"), Localizer.DoStr("Population")); this.DisplayName = Localizer.DoStr("Joshua");
this.InitMultiplier = 1; this.InitMultiplier = 1;
this.SyncToClient = false; this.SyncToClient = false;
this.Range = new Range(0f, 1f); 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.MinColor = new Color(1f, 1f, 1f);
this.MaxColor = new Color(0f, 1f, 0f); this.MaxColor = new Color(0f, 1f, 0f);
this.SumRelevant = true; this.SumRelevant = true;
@ -31,6 +31,7 @@ namespace Eco.Mods.WorldLayers
this.Category = WorldLayerCategory.Plant; this.Category = WorldLayerCategory.Plant;
this.ValueType = WorldLayerValueType.FillRate; this.ValueType = WorldLayerValueType.FillRate;
this.AreaDescription = ""; this.AreaDescription = "";
this.Subcategory = "Joshua".AddSpacesBetweenCapitals();
} }
} }
} }
@ -56,6 +57,7 @@ namespace Eco.Mods.Organisms
static TreeSpecies species; static TreeSpecies species;
[Ecopedia("Plants", "Trees", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)] [Ecopedia("Plants", "Trees", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
[Tag("Plants")]
public partial class JoshuaSpecies : TreeSpecies public partial class JoshuaSpecies : TreeSpecies
{ {
public JoshuaSpecies() : base() public JoshuaSpecies() : base()
@ -63,6 +65,8 @@ namespace Eco.Mods.Organisms
species = this; species = this;
this.InstanceType = typeof(Joshua); this.InstanceType = typeof(Joshua);
this.SetDefaultProperties();
// Info // Info
this.Decorative = false; this.Decorative = false;
this.Name = "Joshua"; this.Name = "Joshua";
@ -84,11 +88,11 @@ namespace Eco.Mods.Organisms
this.ResourceBonusAtGrowth = 0.9f; this.ResourceBonusAtGrowth = 0.9f;
// Visuals // Visuals
// Climate // Climate
this.ReleasesCO2TonsPerDay = -0.05f; this.ReleasesCO2TonsPerDay = -0.0375f;
// WorldLayers // WorldLayers
this.MaxGrowthRate = 0.02f; this.MaxGrowthRate = 0.02f;
this.MaxDeathRate = 0.01f; 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.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 = "FertileGround", ConsumedCapacityPerPop = 4 });
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 30 }); this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 30 });
@ -102,8 +106,9 @@ namespace Eco.Mods.Organisms
this.MaxPollutionDensity = 0.7f; this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f; this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20; this.VoxelsPerEntry = 20;
}
} partial void SetDefaultProperties();
} }
} }
} }

View file

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

View file

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

View file

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