Modifying the growth rate of trees

raptor

Stone
Messages
1
Reaction score
0
Does anyone know of a mod/is willing to make one, that allows editing of the growth rate for trees?
 

nid

Coal
Trusted Dev
Mod Dev
Messages
39
Reaction score
18
Hello, welcome to the forums.

You don't really need any dedicated mod for the change you are after, you can make the edits yourself.

Files you need to edit are located in Eco\Eco_Data\Server\Mods\AutoGen\Plant

Let's assume you want to edit Ceiba tree. Just open the Ceiba.cs file, look for value this.MaturityAgeDays = ;

It is important to remember that growth rate of trees is expressed in real days so, if you want it in hours, you would need to lower it to something like 0.4 or so.

Code:
public partial class CeibaSpecies : TreeSpecies
        {
            public CeibaSpecies() : base()
            {
                species = this;
                this.InstanceType = typeof(Ceiba);

                // Info
                this.Decorative = false;
                this.Name = "Ceiba";
                this.DisplayName = Localizer.DoStr("Ceiba");
                // Lifetime
                this.MaturityAgeDays = 6;
                // 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, 60), 1)
                };
                this.ResourceBonusAtGrowth = 0.9f;
                // Visuals
                // Climate
 
Top Bottom