Prototype/Tree: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Set prototype parent)
(Converted to SMW format)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithHealth}}
{{Prototype parent|Prototype/EntityWithHealth}}
A [[tree]].


== Basics ==
{{Prototype TOC|tree}}
Prototype type: '''tree'''
 
Extends [[Prototype/EntityWithHealth]].


== Optional properties ==
== Optional properties ==
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].


=== variation_weights ===
{{Prototype property|variation_weights|[[Types/table|table]] of [[Types/double|double]]|optional=true}}
'''Type''': [[Types/table]] of [[Types/double]]
Array of [[Types/double|double]].
 
Array of [[Types/double]].
 
=== darkness_of_burnt_tree ===
'''Type''': [[Types/float]]
 
'''Default''': 0.5


=== pictures ===
{{Prototype property|darkness_of_burnt_tree|[[Types/float|float]]|0.5|optional=true}}
'''Type''': [[Types/SpriteVariations]]


{{Prototype property|pictures|[[Types/SpriteVariations|SpriteVariations]]|optional=true}}
Either this or <code>variations</code> must exist.
Either this or <code>variations</code> must exist.


=== variations ===
{{Prototype property|variations|[[Types/table|table]] of [[Types/TreePrototypeVariation|TreePrototypeVariation]]|optional=true}}
'''Type''': [[Types/table]] of [[Types/TreePrototypeVariation]]
 
Array. Can't be empty. Either this or <code>pictures</code> must exist.
Array. Can't be empty. Either this or <code>pictures</code> must exist.


=== colors ===
{{Prototype property|colors|[[Types/table|table]] of [[Types/Color|Color]]|optional=true}}
'''Type''': [[Types/table]] of [[Types/Color]]
 
Array. Mandatory if <code>variations</code> exists.
Array. Mandatory if <code>variations</code> exists.

Revision as of 17:24, 5 August 2019

Template:Prototype parent A tree.

Template:Prototype TOC

Optional properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

Template:Prototype property Array of double.

Template:Prototype property

Template:Prototype property Either this or variations must exist.

Template:Prototype property Array. Can't be empty. Either this or pictures must exist.

Template:Prototype property Array. Mandatory if variations exists.