Package mindustry.entities.abilities
Class SpawnDeathAbility
java.lang.Object
mindustry.entities.abilities.Ability
mindustry.entities.abilities.SpawnDeathAbility
- All Implemented Interfaces:
Cloneable
Spawns a certain amount of units upon death.
-
Field Summary
Modifier and TypeFieldDescriptionint
boolean
If true, units spawned face outwards from the middle.int
float
Random spread of units away from the spawned. -
Constructor Summary
-
Method Summary
-
Field Details
-
unit
-
amount
public int amount -
randAmount
public int randAmount -
spread
public float spreadRandom spread of units away from the spawned. -
faceOutwards
public boolean faceOutwardsIf true, units spawned face outwards from the middle.
-
-
Constructor Details
-
SpawnDeathAbility
-
SpawnDeathAbility
public SpawnDeathAbility()
-
-
Method Details