Prototype/EnemySpawner: Difference between revisions
m (→Mandatory properties: fixed link) |
(dying_sound is optional) |
||
Line 6: | Line 6: | ||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | ||
{{Prototype property|animations|[[Types/AnimationVariations|AnimationVariations]]}} | {{Prototype property|animations|[[Types/AnimationVariations|AnimationVariations]]}} | ||
Line 42: | Line 40: | ||
== Optional properties == | == Optional properties == | ||
{{Prototype property|dying_sound|[[Types/Sound|Sound]]|optional=true}} | |||
{{Prototype property|integration|[[Types/SpriteVariations|SpriteVariations]]|optional=true}} | {{Prototype property|integration|[[Types/SpriteVariations|SpriteVariations]]|optional=true}} |
Revision as of 19:09, 1 April 2020
Template:Prototype parent Can spawn entities. Used for biter/spitter nests.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
Template:Prototype property Count of enemies this spawner can sustain.
Template:Prototype property How many friendly units are required within the spawning_radius of this spawner for it to stop producing more units.
Template:Prototype property Ticks for cooldown after unit is spawned
Template:Prototype property How far from the spawner can the units be spawned.
Template:Prototype property What spaces should be between the spawned units.
Template:Prototype property Max richness to determine spawn shift. Spawn shift is linear interpolation between 0 and maxSpawnShift.
Template:Prototype property Caps how much richness can be added on top of evolution when spawning units. (See also [1])
Template:Prototype property Array of the entities that this spawner can spawn and their spawn probabilities. The sum of probabilities is expected to be 1.0. The array must not be empty.