Prototype/Sticker: 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/Entity}}
{{Prototype parent|Prototype/Entity}}
Entity that sticks to another entity, and damages/slows it. Currently stickers can only be attached to [[Prototype/Unit]], [[Prototype/Character]] and [[Prototype/Car]].


== Basics ==
{{Prototype TOC|sticker}}
Prototype type: '''sticker'''
 
Entity that sticks to another entity, and damages/slows it. Currently stickers can only be attached to [[Prototype/Unit]], [[Prototype/Character]] and [[Prototype/Car]]. Extends [[Prototype/Entity]].


== Mandatory properties ==
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Entity]].
This prototype inherits all the properties from [[Prototype/Entity]].


=== duration_in_ticks ===
{{Prototype property|duration_in_ticks|[[Types/uint32|uint32]]}}
'''Type''': [[Types/uint32]]
 
Must be > 0.
Must be > 0.


== Optional properties ==
== Optional properties ==


=== animation ===
{{Prototype property|animation|[[Types/Animation|Animation]]|optional=true}}
'''Type''': [[Types/Animation]]
 
=== spread_fire_entity ===
'''Type''': [[Types/string]]
 
Name of an entity. If this is given, this sticker is considered a "fire sticker" for some functions, such as [[Types/BaseAttackParameters#fire_penalty]] and [[Types/EntityPrototypeFlags#.22not-flammable.22]].


=== fire_spread_cooldown ===
{{Prototype property|spread_fire_entity|[[Types/string|string]]|optional=true}}
'''Type''': [[Types/uint8]]
Name of an entity. If this is given, this sticker is considered a "fire sticker" for some functions, such as [[Types/BaseAttackParameters#fire_penalty|BaseAttackParameters#fire_penalty]] and [[Types/EntityPrototypeFlags#.22not-flammable.22|EntityPrototypeFlags#.22not-flammable.22]].


'''Default''': 30
{{Prototype property|fire_spread_cooldown|[[Types/uint8|uint8]]|30|optional=true}}


=== fire_spread_radius ===
{{Prototype property|fire_spread_radius|[[Types/float|float]]|1|optional=true}}
'''Type''': [[Types/float]]


'''Default''': 1
{{Prototype property|stickers_per_square_meter|[[Types/float|float]]|15|optional=true}}


=== stickers_per_square_meter ===
{{Prototype property|force_visibility|[[Types/ForceCondition|ForceCondition]]|"all"|optional=true}}
'''Type''': [[Types/float]]


'''Default''': 15
{{Prototype property|single_particle|[[Types/bool|bool]]|false|optional=true}}


=== force_visibility ===
{{Prototype property|damage_per_tick|[[Types/DamagePrototype|DamagePrototype]]||optional=true}}
'''Type''': [[Types/ForceCondition]]
 
'''Default''': "all"
 
=== single_particle ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== damage_per_tick ===
'''Type''': [[Types/DamagePrototype]]
 
=== target_movement_modifier ===
'''Type''': [[Types/float]]
 
'''Default''': 1


{{Prototype property|target_movement_modifier|[[Types/float|float]]|1|optional=true}}
Less than 1 to reduce movement speed, more than 1 to increase it.
Less than 1 to reduce movement speed, more than 1 to increase it.


=== target_movement_modifier_from ===
{{Prototype property|target_movement_modifier_from|[[Types/float|float]]|Value of <code>target_movement_modifier</code>|optional=true}}
'''Type''': [[Types/float]]


'''Default''': Value of <code>target_movement_modifier</code>
{{Prototype property|target_movement_modifier_to|[[Types/float|float]]|Value of <code>target_movement_modifier</code>|optional=true}}
 
=== target_movement_modifier_to ===
'''Type''': [[Types/float]]
 
'''Default''': Value of <code>target_movement_modifier</code>
 
=== vehicle_speed_modifier ===
'''Type''': [[Types/float]]
 
'''Default''': 1


{{Prototype property|vehicle_speed_modifier|[[Types/float|float]]|1|optional=true}}
Less than 1 to reduce vehicle speed, more than 1 to increase it.
Less than 1 to reduce vehicle speed, more than 1 to increase it.


=== vehicle_speed_modifier_from ===
{{Prototype property|vehicle_speed_modifier_from|[[Types/float|float]]|Value of <code>vehicle_speed_modifier</code>|optional=true}}
'''Type''': [[Types/float]]
 
'''Default''': Value of <code>vehicle_speed_modifier</code>
 
=== vehicle_speed_modifier_to ===
'''Type''': [[Types/float]]
 
'''Default''': Value of <code>vehicle_speed_modifier</code>
 
=== vehicle_friction_modifier ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== vehicle_friction_modifier_from ===
'''Type''': [[Types/float]]
 
'''Default''': Value of <code>vehicle_friction_modifier</code>


=== vehicle_friction_modifier_to ===
{{Prototype property|vehicle_speed_modifier_to|[[Types/float|float]]|Value of <code>vehicle_speed_modifier</code>|optional=true}}
'''Type''': [[Types/float]]


'''Default''': Value of <code>vehicle_friction_modifier</code>
{{Prototype property|vehicle_friction_modifier|[[Types/float|float]]|1|optional=true}}


=== selection_box_type ===
{{Prototype property|vehicle_friction_modifier_from|[[Types/float|float]]|Value of <code>vehicle_friction_modifier</code>|optional=true}}
'''Type''': [[Types/string]]


'''Default''': "entity"
{{Prototype property|vehicle_friction_modifier_to|[[Types/float|float]]|Value of <code>vehicle_friction_modifier</code>|optional=true}}


{{Prototype property|selection_box_type|[[Types/string|string]]|"entity"|optional=true}}
Using this property marks the sticker as a "selection sticker", meaning that the selection box will be rendered around the entity when the sticker is on it.
Using this property marks the sticker as a "selection sticker", meaning that the selection box will be rendered around the entity when the sticker is on it.



Revision as of 21:29, 5 August 2019

Template:Prototype parent Entity that sticks to another entity, and damages/slows it. Currently stickers can only be attached to Prototype/Unit, Prototype/Character and Prototype/Car.

Template:Prototype TOC

Mandatory properties

This prototype inherits all the properties from Prototype/Entity.

Template:Prototype property Must be > 0.

Optional properties

Template:Prototype property

Template:Prototype property Name of an entity. If this is given, this sticker is considered a "fire sticker" for some functions, such as BaseAttackParameters#fire_penalty and EntityPrototypeFlags#.22not-flammable.22.

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property Less than 1 to reduce movement speed, more than 1 to increase it.

Template:Prototype property

Template:Prototype property

Template:Prototype property Less than 1 to reduce vehicle speed, more than 1 to increase it.

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property Using this property marks the sticker as a "selection sticker", meaning that the selection box will be rendered around the entity when the sticker is on it.

Possible values are:

Flag meaning
entity The normal entity selection box. Yellow by default.
electricity The selection box used to specify electric poles an entity is connected to. Light blue by default.
copy The selection box used when doing entity copy-paste. Green by default.
not-allowed The selection box used when specifying colliding entities. Red by default.
pair
logistics
train-visualization