Class MoveLightningAbility

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

public class MoveLightningAbility extends Ability
  • Field Details

    • damage

      public float damage
      Lightning damage
    • chance

      public float chance
      Chance of firing every tick. Set >= 1 to always fire lightning every tick at max speed
    • length

      public int length
      Length of the lightning. <= 0 to disable
    • minSpeed

      public float minSpeed
      Speeds for when to start lightninging and when to stop getting faster
    • maxSpeed

      public float maxSpeed
      Speeds for when to start lightninging and when to stop getting faster
    • color

      public Color color
      Lightning color
    • y

      public float y
      Shifts where the lightning spawns along the Y axis
    • x

      public float x
      Offset along the X axis
    • alternate

      public boolean alternate
      Whether the spawn side alternates
    • heatRegion

      public String heatRegion
      Jittering heat sprite like the shield on v5 Javelin
    • bullet

      @Nullable public BulletType bullet
      Bullet type that is fired. Can be null
    • bulletAngle

      public float bulletAngle
      Bullet angle parameters
    • bulletSpread

      public float bulletSpread
      Bullet angle parameters
    • shootEffect

      public Effect shootEffect
    • parentizeEffects

      public boolean parentizeEffects
    • shootSound

      public Sound shootSound
    • side

      protected float side
  • Constructor Details

    • MoveLightningAbility

      public MoveLightningAbility(float damage, int length, float chance, float y, float minSpeed, float maxSpeed, Color color, String heatRegion)
    • MoveLightningAbility

      public MoveLightningAbility(float damage, int length, float chance, float y, float minSpeed, float maxSpeed, Color color)
  • Method Details

    • update

      public void update(mindustry.gen.Unit unit)
      Overrides:
      update in class Ability
    • draw

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