need to edit this

This commit is contained in:
Hactarus 2020-09-09 11:58:32 +00:00
parent 64f457d60a
commit a52221b033
7 changed files with 136 additions and 94 deletions

View file

@ -1,7 +1,10 @@
// Copyright (c) Strange Loop Games. All rights reserved.
// See LICENSE file in the project root for full license information.
// <auto-generated />
namespace Eco.Mods.TechTree
{
// [DoNotLocalize]
}
}
// WORLD LAYER INFO
namespace Eco.Mods.WorldLayers
{
@ -22,12 +25,11 @@ namespace Eco.Mods.WorldLayers
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.ValueType = WorldLayerValueType.FillRate;
this.AreaDescription = "";
}
}
@ -35,7 +37,8 @@ namespace Eco.Mods.WorldLayers
namespace Eco.Mods.Organisms
{
using System.Collections.Generic;
using System.Collections.Generic;
using Eco.Core.Items;
using Eco.Gameplay.Plants;
using Eco.Mods.TechTree;
using Eco.Shared.Localization;
@ -51,6 +54,8 @@ namespace Eco.Mods.Organisms
public Birch(WorldPosition3i mapPos, PlantPack plantPack) : base(species, mapPos, plantPack) { }
public Birch() { }
static TreeSpecies species;
[Ecopedia("Plants", "Trees", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
public partial class BirchSpecies : TreeSpecies
{
public BirchSpecies() : base()
@ -63,22 +68,23 @@ namespace Eco.Mods.Organisms
this.Name = "Birch";
this.DisplayName = Localizer.DoStr("Birch");
// Lifetime
this.MaturityAgeDays = 1;
this.MaturityAgeDays = 5;
// Generation
this.Height = 1;
// Food
this.CalorieValue = 12;
this.CalorieValue = 15;
// Resources
this.PostHarvestingGrowth = 0;
this.ScythingKills = false;
this.PickableAtPercent = 0;
this.ResourceList = new List<SpeciesResource>()
{
new SpeciesResource(typeof(LogItem), new Range(0, 50), 1)
new SpeciesResource(typeof(BirchLogItem), new Range(0, 50), 1)
};
this.ResourceBonusAtGrowth = 0.9f;
// Visuals
// Climate
this.ReleasesCO2ppmPerDay = -0.002f;
this.ReleasesCO2TonsPerDay = -0.1f;
// WorldLayers
this.MaxGrowthRate = 0.01f;
this.MaxDeathRate = 0.005f;
@ -86,13 +92,13 @@ namespace Eco.Mods.Organisms
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.BlanketSpawnPercent = 0.07f;
this.IdealTemperatureRange = new Range(0.55f, 0.75f);
this.IdealMoistureRange = new Range(0.52f, 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.TemperatureExtremes = new Range(0.5f, 0.8f);
this.MoistureExtremes = new Range(0.5f, 0.6f);
this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20;