Types/TreePrototypeVariation: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "== Basics == Graphics definition for a Prototype/Tree. == Mandatory properties == === trunk === '''Type''': Types/Animation Has to have one more frame than <code>lea...")
 
m (word)
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
'''Type''': [[Types/Animation]]
'''Type''': [[Types/Animation]]


Has to have one more frame than <code>leaves</code>.
If <code>shadow</code> is not specified, this has to have one more frame than <code>leaves</code>.


=== leaves ===
=== leaves ===
Line 13: Line 13:
=== leaf_generation ===
=== leaf_generation ===
'''Type''': [[Types/CreateParticleTriggerEffectItem]]
'''Type''': [[Types/CreateParticleTriggerEffectItem]]
The [[Types/CreateEntityTriggerEffectItem#entity_name]] has to be the name of a [[Prototype/LeafParticle]].


=== branch_generation ===
=== branch_generation ===
'''Type''': [[Types/CreateParticleTriggerEffectItem]]
'''Type''': [[Types/CreateParticleTriggerEffectItem]]
== Optional properties ==
=== shadow ===
'''Type''': [[Types/Animation]]
Shadow must have 1 less frame_count than <code>leaves</code> (shadow.frame_count = leaves.frame_count + 1).
=== disable_shadow_distortion_beginning_at_frame ===
'''Type''': [[Types/uint32]]
Only loaded if <code>shadow</code> is present. Defaults to shadow.frame_count - 1.
=== normal ===
'''Type''': [[Types/Animation]]
Normal must have the same frame_count as <code>leaves</code> (normal.frame_count = leaves.frame_count).
=== overlay ===
'''Type''': [[Types/Animation]]
Overlay must have the same frame_count as <code>leaves</code> (overlay.frame_count = leaves.frame_count). Won't be tinted by the tree color unless apply_runtime_tint is set to true in the sprite definition. [https://forums.factorio.com/viewtopic.php?p=547758#p547758]
=== water_reflection ===
'''Type''': [[Types/WaterReflectionDefinition]]

Latest revision as of 11:44, 3 December 2021

Basics

Graphics definition for a Prototype/Tree.

Mandatory properties

trunk

Type: Types/Animation

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

leaves

Type: Types/Animation

leaf_generation

Type: Types/CreateParticleTriggerEffectItem

branch_generation

Type: Types/CreateParticleTriggerEffectItem

Optional properties

shadow

Type: Types/Animation

Shadow must have 1 less frame_count than leaves (shadow.frame_count = leaves.frame_count + 1).

disable_shadow_distortion_beginning_at_frame

Type: Types/uint32

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

normal

Type: Types/Animation

Normal must have the same frame_count as leaves (normal.frame_count = leaves.frame_count).

overlay

Type: Types/Animation

Overlay must have the same frame_count as leaves (overlay.frame_count = leaves.frame_count). Won't be tinted by the tree color unless apply_runtime_tint is set to true in the sprite definition. [1]

water_reflection

Type: Types/WaterReflectionDefinition