server-config/Mods/AutoGen/Plant/SaguaroCactus.cs
2020-12-04 11:26:38 +00:00

109 lines
4.3 KiB
C#
Executable file

// 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
{
}
// 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 PlantLayerSettingsSaguaroCactus : PlantLayerSettings
{
public PlantLayerSettingsSaguaroCactus() : base()
{
this.Name = "SaguaroCactus";
this.DisplayName = string.Format("{0} {1}", Localizer.DoStr("Saguaro Cactus"), 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.SumRelevant = true;
this.Unit = "Saguaro Cactus";
this.VoxelsPerEntry = 20;
this.Category = WorldLayerCategory.Plant;
this.ValueType = WorldLayerValueType.FillRate;
this.AreaDescription = "";
}
}
}
namespace Eco.Mods.Organisms
{
using System.Collections.Generic;
using Eco.Core.Items;
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 SaguaroCactus : TreeEntity
{
public SaguaroCactus(WorldPosition3i mapPos, PlantPack plantPack) : base(species, mapPos, plantPack) { }
public SaguaroCactus() { }
static TreeSpecies species;
[Ecopedia("Plants", "Plants", createAsSubPage: true, display: InPageTooltip.DynamicTooltip)]
public partial class SaguaroCactusSpecies : TreeSpecies
{
public SaguaroCactusSpecies() : base()
{
species = this;
this.InstanceType = typeof(SaguaroCactus);
// Info
this.Decorative = false;
this.Name = "SaguaroCactus";
this.DisplayName = Localizer.DoStr("Saguaro Cactus");
// Lifetime
this.MaturityAgeDays = 6;
// Generation
this.Height = 1;
// Food
this.CalorieValue = 12;
// Resources
this.PostHarvestingGrowth = 0;
this.ScythingKills = false;
this.PickableAtPercent = 0;
this.ResourceList = new List<SpeciesResource>()
{
new SpeciesResource(typeof(SaguaroRibItem), new Range(0, 30), 1),
};
this.ResourceBonusAtGrowth = 0.9f;
// Visuals
// Climate
this.ReleasesCO2TonsPerDay = -0.05f;
// WorldLayers
this.MaxGrowthRate = 0.02f;
this.MaxDeathRate = 0.01f;
this.SpreadRate = 0.001f;
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 });
this.BlanketSpawnPercent = 0.6f;
this.IdealTemperatureRange = new Range(0.8f, 0.9f);
this.IdealMoistureRange = new Range(0.05f, 0.25f);
this.IdealWaterRange = new Range(0, 0.1f);
this.WaterExtremes = new Range(0, 0.2f);
this.TemperatureExtremes = new Range(0.7f, 1);
this.MoistureExtremes = new Range(0, 0.3f);
this.MaxPollutionDensity = 0.7f;
this.PollutionDensityTolerance = 0.1f;
this.VoxelsPerEntry = 20;
}
}
}
}