Class RepairFieldAbility

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

public class RepairFieldAbility extends Ability
  • Field Details

    • amount

      public float amount
    • reload

      public float reload
    • range

      public float range
    • healPercent

      public float healPercent
    • healEffect

      public Effect healEffect
    • activeEffect

      public Effect activeEffect
    • sound

      public arc.audio.Sound sound
    • soundVolume

      public float soundVolume
    • parentizeEffects

      public boolean parentizeEffects
    • sameTypeHealMult

      public float sameTypeHealMult
      Multiplies healing to units of the same type by this amount.
    • maxTargets

      public int maxTargets
      Maximum number of units healed.
    • smartHeal

      public boolean smartHeal
      If true, this ability will consider missing hp, number of targets, cooldowns...etc.
    • smartHealPercent

      public float smartHealPercent
      If a damaged unit health % is lower than this heal it as soon as possible. Values close to 1f will likely waste healing potential.
    • smartHealStrength

      public float smartHealStrength
      A multiplier on potential healing efficiency. High values -> efficient aoe healing. Low values -> efficient single target healing.
    • smartDowntime

      public float smartDowntime
      If all damaged units havent been hurt for at least this amount of time, force healing them, regardless of thresholds.
    • smartInterval

      public float smartInterval
      How often to check for healing when at least 1 damaged unit is found.
    • randDesync

      public float randDesync
      Random initial reload multiplier to check for damaged units. Useful for desyncing healer timers once.
    • targets

      protected static arc.struct.Seq<mindustry.gen.Unit> targets
    • healTimer

      protected float healTimer
    • downTimer

      protected float downTimer
    • healthMissing

      protected float healthMissing
    • sumMaxHealth

      protected float sumMaxHealth
    • sumTypeMult

      protected float sumTypeMult
    • healthChange

      protected float healthChange
    • hasHealed

      protected boolean hasHealed
    • healNow

      protected boolean healNow
  • Constructor Details

    • RepairFieldAbility

      public RepairFieldAbility()
    • RepairFieldAbility

      public RepairFieldAbility(float amount, float reload, float range)
    • RepairFieldAbility

      public RepairFieldAbility(float amount, float reload, float range, float healPercent)
  • Method Details

    • addStats

      public void addStats(arc.scene.ui.layout.Table t)
      Overrides:
      addStats in class Ability
    • update

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