Prototype/FireFlame: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added prototype type to page)
(0.17)
Line 6: Line 6:
== Mandatory properties ==
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Entity]].
This prototype inherits all the properties from [[Prototype/Entity]].
=== spawn_entity ===
'''Type''': [[Types/string]]
The name of an entity.


=== damage_per_tick ===
=== damage_per_tick ===
Line 26: Line 21:
'''Type''': [[Types/RenderLayer]]
'''Type''': [[Types/RenderLayer]]


'''Default''': "smoke"
'''Default''': "object"
 
=== initial_render_layer ===
'''Type''': [[Types/RenderLayer]]
 
'''Default''': "object"
 
=== secondary_render_layer ===
'''Type''': [[Types/RenderLayer]]
 
'''Default''': "object"


=== small_tree_fire_pictures ===
=== small_tree_fire_pictures ===
Line 35: Line 40:


=== smoke_source_pictures ===
=== smoke_source_pictures ===
'''Type''': [[Types/AnimationVariations]]
=== secondary_pictures ===
'''Type''': [[Types/AnimationVariations]]
'''Type''': [[Types/AnimationVariations]]


=== burnt_patch_pictures ===
=== burnt_patch_pictures ===
'''Type''': [[Types/SpriteVariations]]
'''Type''': [[Types/SpriteVariations]]
=== secondary_picture_fade_out_start ===
'''Type''': [[Types/uint32]]
'''Default''': 0
=== secondary_picture_fade_out_duration ===
'''Type''': [[Types/uint32]]
'''Default''': 30
=== spawn_entity ===
'''Type''': [[Types/string]]
The name of an entity.


=== smoke ===
=== smoke ===
'''Type''': Array of [[Types/SmokeSource]]
'''Type''': Array of [[Types/SmokeSource]]
=== maximum_spread_count ===
'''Type''': [[Types/uint16]]
'''Default''': 200


=== initial_flame_count ===
=== initial_flame_count ===
Line 48: Line 76:
'''Default''': 0
'''Default''': 0


=== maximum_spread_count ===
=== uses_alternative_behavior ===
'''Type''': [[Types/uint16]]
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== limit_overlapping_particles ===
'''Type''': [[Types/bool]]


'''Default''': 200
'''Default''': false


=== tree_dying_factor ===
=== tree_dying_factor ===
Line 76: Line 109:
'''Type''': [[Types/float]]
'''Type''': [[Types/float]]


'''Default''': 0
'''Default''': 0.0


=== damage_multiplier_increase_per_added_fuel ===
=== damage_multiplier_increase_per_added_fuel ===
'''Type''': [[Types/float]]
'''Type''': [[Types/float]]


'''Default''': 0
'''Default''': 0.0


=== maximum_damage_multiplier ===
=== maximum_damage_multiplier ===
'''Type''': [[Types/float]]
'''Type''': [[Types/float]]


'''Default''': 1
'''Default''': 1.0


=== lifetime_increase_by ===
=== lifetime_increase_by ===
Line 124: Line 157:


=== on_fuel_added_action ===
=== on_fuel_added_action ===
'''Type''': [[Types/Trigger]]
=== on_damage_tick_effect ===
'''Type''': [[Types/Trigger]]
'''Type''': [[Types/Trigger]]


Line 129: Line 165:
'''Type''': [[Types/LightDefinition]]
'''Type''': [[Types/LightDefinition]]


=== flame_alpha_deviation ===
=== particle_alpha_blend_duration ===
'''Type''': [[Types/float]]
'''Type''': [[Types/uint16]]


'''Default''': 0
'''Default''': 0
Line 144: Line 180:
'''Default''': 1
'''Default''': 1


=== burnt_patch_alpha_variations ===
=== particle_alpha ===
'''Type''': [[Types/table]]
'''Type''': [[Types/float]]
 
'''Default''': 1
 
Only loaded if <code>uses_alternative_behavior</code> is true.
 
=== particle_alpha_deviation ===
'''Type''': [[Types/float]]
 
'''Default''': 0
 
Only loaded if <code>uses_alternative_behavior</code> is true.
 
=== flame_alpha ===
'''Type''': [[Types/float]]


Array of tables with the below mandatory members:
'''Default''': 1


==== tile ====
'''Type''': [[Types/string]]


Name of a tile.
Only loaded if <code>uses_alternative_behavior</code> is false.


==== alpha ====
=== flame_alpha_deviation ===
'''Type''': [[Types/float]]
'''Type''': [[Types/float]]
'''Default''': 0
Only loaded if <code>uses_alternative_behavior</code> is false.
=== burnt_patch_alpha_variations ===
'''Type''': [[Types/table]]
Array of tables with the following mandatory members:
* tile - [[Types/string]] - Name of a tile.
* alpha - [[Types/float]]

Revision as of 13:45, 13 April 2019

Basics

Prototype type: fire

Extends Prototype/Entity.

Mandatory properties

This prototype inherits all the properties from Prototype/Entity.

damage_per_tick

Type: Types/DamagePrototype

spread_delay

Type: Types/uint32

spread_delay_deviation

Type: Types/uint32

Optional properties

render_layer

Type: Types/RenderLayer

Default: "object"

initial_render_layer

Type: Types/RenderLayer

Default: "object"

secondary_render_layer

Type: Types/RenderLayer

Default: "object"

small_tree_fire_pictures

Type: Types/AnimationVariations

pictures

Type: Types/AnimationVariations

smoke_source_pictures

Type: Types/AnimationVariations

secondary_pictures

Type: Types/AnimationVariations

burnt_patch_pictures

Type: Types/SpriteVariations

secondary_picture_fade_out_start

Type: Types/uint32

Default: 0

secondary_picture_fade_out_duration

Type: Types/uint32

Default: 30

spawn_entity

Type: Types/string

The name of an entity.

smoke

Type: Array of Types/SmokeSource

maximum_spread_count

Type: Types/uint16

Default: 200

initial_flame_count

Type: Types/uint8

Default: 0

uses_alternative_behavior

Type: Types/bool

Default: false

limit_overlapping_particles

Type: Types/bool

Default: false

tree_dying_factor

Type: Types/float

Default: 0

fade_in_duration

Type: Types/uint32

Default: 30

fade_out_duration

Type: Types/uint32

Default: 30

initial_lifetime

Type: Types/uint32

Default: 300

damage_multiplier_decrease_per_tick

Type: Types/float

Default: 0.0

damage_multiplier_increase_per_added_fuel

Type: Types/float

Default: 0.0

maximum_damage_multiplier

Type: Types/float

Default: 1.0

lifetime_increase_by

Type: Types/uint32

Default: 20

lifetime_increase_cooldown

Type: Types/uint32

Default: 10

maximum_lifetime

Type: Types/uint32

Default: Max uint32

add_fuel_cooldown

Type: Types/uint32

Default: 10

delay_between_initial_flames

Type: Types/uint32

Default: 10

smoke_fade_in_duration

Type: Types/uint32

Default: 30

smoke_fade_out_duration

Type: Types/uint32

Default: 30

on_fuel_added_action

Type: Types/Trigger

on_damage_tick_effect

Type: Types/Trigger

light

Type: Types/LightDefinition

particle_alpha_blend_duration

Type: Types/uint16

Default: 0

burnt_patch_lifetime

Type: Types/uint32

Default: 1800

burnt_patch_alpha_default

Type: Types/float

Default: 1

particle_alpha

Type: Types/float

Default: 1

Only loaded if uses_alternative_behavior is true.

particle_alpha_deviation

Type: Types/float

Default: 0

Only loaded if uses_alternative_behavior is true.

flame_alpha

Type: Types/float

Default: 1


Only loaded if uses_alternative_behavior is false.

flame_alpha_deviation

Type: Types/float

Default: 0

Only loaded if uses_alternative_behavior is false.

burnt_patch_alpha_variations

Type: Types/table

Array of tables with the following mandatory members: