Jump to content

About the Farm Station and tree branches


Sanchozz
  • Branch: Preview Branch Version: Linux Fixed

Three possible problems in one report.

Let's look at the description of the Farm Station.

457140_20240707220602_2.png.0fcb3032e37056f5d8f327c949b41b38.png

First:

A small typo, the description says that it improves buildings, not plants.

 

Second:

The Arbor tree is listed twice. But the Bonbon tree is only one time.

This is because in the plant configs specified that:

  • Both the trunk and branches of the Arbor tree can be improved.
  • Only the branches of the Bonbon tree can be improved.
  • But the trunk of the Bonbon tree cannot be improved.

For the Bonbon tree, is this intended ?

 

And Third:

De facto, duplicants cannot improve the branches of both Arbor and Bonbon trees.

This is because the branches of both trees are banned in the depths of the RoomProber class, they never receive an GameHashes.UpdateRoom event, their Tinkerable component cannot understand that it is in the right room and therefore does not create an errand.

Here is a demo created in the sandbox. [all mods are disabled]
Both trees will grow in 20 seconds.

 

To solve the problem, I suggest adding the following code to InitializeStates method of PlantBranchGrower class:

root.EventHandler(GameHashes.UpdateRoom, (smi, data) => smi.ActionPerBranch(branch => branch.Trigger((int)GameHashes.UpdateRoom, data)));

This code retrigger the GameHashes.UpdateRoom event from the trunk of the tree to all its branches.

Here is the proof that this approach works:

 

 

Test Plants Trees.sav


Steps to Reproduce

See the description

  • Like 4



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...