Home

TreeVariation

Tree has number of "dying" stages, which is deduced from frame count of shadow if shadow is defined, otherwise from frame count of trunk. Frame count of leaves has to be one less than deduced number stages, as last stage is always assumed to be leafless.

Type

struct

Properties

trunk

If shadow is not specified, this has to have one more frame than leaves.

leaves

leaf_generation

branch_generation

shadow

Shadow must have 1 more frame_count than leaves.

disable_shadow_distortion_beginning_at_frame

Only loaded if shadow is present. Defaults to shadow.frame_count - 1.

normal

Normal must have the same frame_count as leaves.

overlay

Overlay must have the same frame_count as leaves. Won't be tinted by the tree color unless apply_runtime_tint is set to true in the sprite definition. See here.

underwater

underwater_layer_offset

leaves_when_mined_manually

leaves_when_mined_automatically

leaves_when_damaged

This value is multiplied with the percent of health lost.

leaves_when_destroyed

branches_when_mined_manually

branches_when_mined_automatically

branches_when_damaged

This value is multiplied with the percent of health lost.

branches_when_destroyed

water_reflection