Prototype/Tree: Difference between revisions
Jump to navigation
Jump to search
(Added prototype type to page) |
(0.17) |
||
Line 4: | Line 4: | ||
Extends [[Prototype/EntityWithHealth]]. | Extends [[Prototype/EntityWithHealth]]. | ||
== | == Optional properties == | ||
This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | ||
== | === variation_weights === | ||
'''Type''': [[Types/table]] of [[Types/double]] | |||
Array of [[Types/double]]. | |||
=== darkness_of_burnt_tree === | === darkness_of_burnt_tree === |
Revision as of 18:57, 11 April 2019
Basics
Prototype type: tree
Extends Prototype/EntityWithHealth.
Optional properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
variation_weights
Type: Types/table of Types/double
Array of Types/double.
darkness_of_burnt_tree
Type: Types/float
Default: 0.5
pictures
Type: Types/SpriteVariations
Either this or variations
must exist.
variations
Type: Types/table of Types/TreePrototypeVariation
Array. Can't be empty. Either this or pictures
must exist.
colors
Type: Types/table of Types/Color
Array. Mandatory if variations
exists.