Wrap Immunities in unit stats (#6946)

* Don't display move effect ability in stats

* Wrap the immunities list
This commit is contained in:
MEEPofFaith
2022-06-08 05:42:17 -07:00
committed by GitHub
parent 318447afaf
commit 68cc95c26d
5 changed files with 13 additions and 8 deletions

View File

@@ -6,6 +6,8 @@ import mindustry.gen.*;
import mindustry.type.*;
public abstract class Ability implements Cloneable{
/** If false, this ability does not show in unit stats. */
public boolean display = true;
//the one and only data variable that is synced.
public float data;

View File

@@ -24,6 +24,7 @@ public class MoveEffectAbility extends Ability{
this.color = color;
this.effect = effect;
this.interval = interval;
display = false;
}
public MoveEffectAbility(){