mirror of
https://old.git.ood.ovh/eco/server-config.git
synced 2025-04-28 23:14:23 +02:00
103 lines
3.9 KiB
C#
103 lines
3.9 KiB
C#
namespace Eco.Mods.TechTree
|
|
{
|
|
// [DoNotLocalize]
|
|
}
|
|
// WORLD LAYER INFO
|
|
namespace Eco.Mods.WorldLayers
|
|
{
|
|
using Eco.Shared.Localization;
|
|
using Eco.Shared.Math;
|
|
using Eco.Shared.Utils;
|
|
using Eco.Simulation.WorldLayers.Layers;
|
|
|
|
public partial class PlantLayerSettingsBirch : PlantLayerSettings
|
|
{
|
|
public PlantLayerSettingsBirch() : base()
|
|
{
|
|
this.Name = "Birch";
|
|
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Birch"), Localizer.DoStr("Population"));
|
|
this.InitMultiplier = 1;
|
|
this.SyncToClient = false;
|
|
this.Range = new Range(0f, 1f);
|
|
this.RenderRange = new Range(0f, 0.05f);
|
|
this.MinColor = new Color(1f, 1f, 1f);
|
|
this.MaxColor = new Color(0f, 1f, 0f);
|
|
this.Percent = false;
|
|
this.SumRelevant = true;
|
|
this.Unit = "Birch";
|
|
this.VoxelsPerEntry = 20;
|
|
this.Category = WorldLayerCategory.Plant;
|
|
this.ValueType = WorldLayerValueType.Percent;
|
|
this.AreaDescription = "";
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace Eco.Mods.Organisms
|
|
{
|
|
using System.Collections.Generic;
|
|
using Eco.Gameplay.Plants;
|
|
using Eco.Mods.TechTree;
|
|
using Eco.Shared.Localization;
|
|
using Eco.Shared.Math;
|
|
using Eco.Shared.Serialization;
|
|
using Eco.Simulation;
|
|
using Eco.Simulation.Types;
|
|
using Eco.World.Blocks;
|
|
|
|
[Serialized]
|
|
public partial class Birch : TreeEntity
|
|
{
|
|
public Birch(WorldPosition3i mapPos, PlantPack plantPack) : base(species, mapPos, plantPack) { }
|
|
public Birch() { }
|
|
static TreeSpecies species;
|
|
public partial class BirchSpecies : TreeSpecies
|
|
{
|
|
public BirchSpecies() : base()
|
|
{
|
|
species = this;
|
|
this.InstanceType = typeof(Birch);
|
|
|
|
// Info
|
|
this.Decorative = false;
|
|
this.Name = "Birch";
|
|
this.DisplayName = Localizer.DoStr("Birch");
|
|
// Lifetime
|
|
this.MaturityAgeDays = 1;
|
|
// Generation
|
|
// Food
|
|
this.CalorieValue = 12;
|
|
// Resources
|
|
this.PostHarvestingGrowth = 0;
|
|
this.ScythingKills = false;
|
|
this.PickableAtPercent = 0;
|
|
this.ResourceList = new List<SpeciesResource>()
|
|
{
|
|
new SpeciesResource(typeof(LogItem), new Range(0, 50), 1)
|
|
};
|
|
this.ResourceBonusAtGrowth = 0.9f;
|
|
// Visuals
|
|
// Climate
|
|
this.ReleasesCO2ppmPerDay = -0.002f;
|
|
// WorldLayers
|
|
this.MaxGrowthRate = 0.01f;
|
|
this.MaxDeathRate = 0.005f;
|
|
this.SpreadRate = 0.001f;
|
|
this.ResourceConstraints.Add(new ResourceConstraint() { LayerName = "SoilMoisture", HalfSpeedConcentration = 0.1f, MaxResourceContent = 0.1f });
|
|
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "FertileGround", ConsumedCapacityPerPop = 1 });
|
|
this.CapacityConstraints.Add(new CapacityConstraint() { CapacityLayerName = "CanopySpace", ConsumedCapacityPerPop = 20 });
|
|
this.BlanketSpawnPercent = 0.5f;
|
|
this.IdealTemperatureRange = new Range(0.21f, 0.52f);
|
|
this.IdealMoistureRange = new Range(0.48f, 0.58f);
|
|
this.IdealWaterRange = new Range(0, 0.1f);
|
|
this.WaterExtremes = new Range(0, 0.2f);
|
|
this.TemperatureExtremes = new Range(0.18f, 0.6f);
|
|
this.MoistureExtremes = new Range(0.45f, 0.61f);
|
|
this.MaxPollutionDensity = 0.7f;
|
|
this.PollutionDensityTolerance = 0.1f;
|
|
this.VoxelsPerEntry = 20;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|