WIP scathe phase ammo / Shield ability fixes
This commit is contained in:
@@ -15,6 +15,7 @@ public abstract class Ability implements Cloneable{
|
||||
public void update(Unit unit){}
|
||||
public void draw(Unit unit){}
|
||||
public void death(Unit unit){}
|
||||
public void created(Unit unit){}
|
||||
public void init(UnitType type){}
|
||||
public void displayBars(Unit unit, Table bars){}
|
||||
public void addStats(Table t){
|
||||
|
||||
@@ -131,6 +131,11 @@ public class ForceFieldAbility extends Ability{
|
||||
bars.add(new Bar("stat.shieldhealth", Pal.accent, () -> unit.shield / max)).row();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void created(Unit unit){
|
||||
unit.shield = max;
|
||||
}
|
||||
|
||||
public void checkRadius(Unit unit){
|
||||
//timer2 is used to store radius scale as an effect
|
||||
realRad = radiusScale * radius;
|
||||
|
||||
@@ -11,7 +11,6 @@ import mindustry.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.graphics.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.ui.*;
|
||||
|
||||
public class ShieldArcAbility extends Ability{
|
||||
@@ -102,7 +101,7 @@ public class ShieldArcAbility extends Ability{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(UnitType type){
|
||||
public void created(Unit unit){
|
||||
data = max;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user