Tree stages
Posted: Fri May 13, 2022 9:03 pm
I was wondering if anyone had more information about the tree stages, tree_stage_index, tree_gray_stage_index, and their relevant max properties.
I've gathered that tree_stage_index is based on the leaves & trunk sprites. Supposed to be the "health" of the tree? But what are the gray stages? Is there a relationship between the two? Is a tree considered "dead" only when it reaches max tree_stage_index, or when both that and the gray stage reach max?
Also, how are these determined? Working on revising a sapling mod (the saplings just being trees with less health and different sprites), I've noticed in heavily polluted areas (tested from 150 to over 2000 pollution units) the saplings, when spawned, will start already "damaged" (tree_stage_index > 1), as well as a random gray stage index, but then for the life of the sapling (currently 14-21 minutes), it never changes from this. Why?
I've gathered that tree_stage_index is based on the leaves & trunk sprites. Supposed to be the "health" of the tree? But what are the gray stages? Is there a relationship between the two? Is a tree considered "dead" only when it reaches max tree_stage_index, or when both that and the gray stage reach max?
Also, how are these determined? Working on revising a sapling mod (the saplings just being trees with less health and different sprites), I've noticed in heavily polluted areas (tested from 150 to over 2000 pollution units) the saplings, when spawned, will start already "damaged" (tree_stage_index > 1), as well as a random gray stage index, but then for the life of the sapling (currently 14-21 minutes), it never changes from this. Why?