Prototype/Sticker: Difference between revisions
(Converted to SMW format) |
(0.18.17: damage_interval) |
||
Line 13: | Line 13: | ||
{{Prototype property|animation|[[Types/Animation|Animation]]|optional=true}} | {{Prototype property|animation|[[Types/Animation|Animation]]|optional=true}} | ||
{{Prototype property|damage_interval|[[Types/uint32|uint32]]|1|optional=true}} | |||
Interval between application of <code>damage_per_tick</code>, in ticks. | |||
{{Prototype property|spread_fire_entity|[[Types/string|string]]|optional=true}} | {{Prototype property|spread_fire_entity|[[Types/string|string]]|optional=true}} | ||
Line 28: | Line 31: | ||
{{Prototype property|damage_per_tick|[[Types/DamagePrototype|DamagePrototype]]||optional=true}} | {{Prototype property|damage_per_tick|[[Types/DamagePrototype|DamagePrototype]]||optional=true}} | ||
Applied every <code>damage_interval</code> ticks, so may not necessarily be "per tick". | |||
{{Prototype property|target_movement_modifier|[[Types/float|float]]|1|optional=true}} | {{Prototype property|target_movement_modifier|[[Types/float|float]]|1|optional=true}} |
Revision as of 13:31, 2 April 2020
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.
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
Template:Prototype property Must be > 0.
Optional properties
Template:Prototype property
Interval between application of damage_per_tick
, in ticks.
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
Applied every damage_interval
ticks, so may not necessarily be "per tick".
Template:Prototype property Less than 1 to reduce movement speed, more than 1 to increase it.
Template:Prototype property Less than 1 to reduce vehicle speed, more than 1 to increase it.
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 |