Class SpawnDeathAbility

java.lang.Object
mindustry.entities.abilities.Ability
mindustry.entities.abilities.SpawnDeathAbility
All Implemented Interfaces:
Cloneable

public class SpawnDeathAbility extends Ability
Spawns a certain amount of units upon death.
  • Field Details

    • unit

      public UnitType unit
    • amount

      public int amount
    • randAmount

      public int randAmount
    • spread

      public float spread
      Random spread of units away from the spawned.
    • faceOutwards

      public boolean faceOutwards
      If true, units spawned face outwards from the middle.
  • Constructor Details

    • SpawnDeathAbility

      public SpawnDeathAbility(UnitType unit, int amount, float spread)
    • SpawnDeathAbility

      public SpawnDeathAbility()
  • Method Details

    • addStats

      public void addStats(Table t)
      Overrides:
      addStats in class Ability
    • death

      public void death(mindustry.gen.Unit unit)
      Overrides:
      death in class Ability