More unit abilities
This commit is contained in:
@@ -291,6 +291,18 @@ public class Fx{
|
||||
Lines.circle(e.x, e.y, 2f + e.finpow() * 7f);
|
||||
}),
|
||||
|
||||
shieldWave = new Effect(22, e -> {
|
||||
color(Pal.shield);
|
||||
stroke(e.fout() * 2f);
|
||||
Lines.circle(e.x, e.y, 4f + e.finpow() * 60f);
|
||||
}),
|
||||
|
||||
shieldApply = new Effect(11, e -> {
|
||||
color(Pal.shield);
|
||||
stroke(e.fout() * 2f);
|
||||
Lines.circle(e.x, e.y, 2f + e.finpow() * 7f);
|
||||
}),
|
||||
|
||||
hitBulletSmall = new Effect(14, e -> {
|
||||
color(Color.white, Pal.lightOrange, e.fin());
|
||||
|
||||
@@ -1275,9 +1287,9 @@ public class Fx{
|
||||
}),
|
||||
|
||||
shieldBreak = new Effect(40, e -> {
|
||||
color(Pal.accent);
|
||||
color(e.color);
|
||||
stroke(3f * e.fout());
|
||||
Lines.poly(e.x, e.y, 6, e.rotation + e.fin(), 90);
|
||||
Lines.poly(e.x, e.y, 6, e.rotation + e.fin());
|
||||
}),
|
||||
|
||||
unitShieldBreak = new Effect(35, e -> {
|
||||
|
||||
@@ -5,8 +5,8 @@ import arc.struct.*;
|
||||
import mindustry.ai.types.*;
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.ctype.*;
|
||||
import mindustry.entities.abilities.*;
|
||||
import mindustry.entities.bullet.*;
|
||||
import mindustry.entities.units.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.graphics.*;
|
||||
import mindustry.type.*;
|
||||
@@ -129,6 +129,8 @@ public class UnitTypes implements ContentList{
|
||||
buildSpeed = 0.8f;
|
||||
armor = 1f;
|
||||
|
||||
abilities.add(new HealFieldAbility(10f, 60f * 4, 60f));
|
||||
|
||||
weapons.add(new Weapon("heal-weapon"){{
|
||||
shootY = 2f;
|
||||
reload = 24f;
|
||||
@@ -155,7 +157,7 @@ public class UnitTypes implements ContentList{
|
||||
mineSpeed = 5f;
|
||||
commandLimit = 8;
|
||||
|
||||
abilities.add(new HealFieldAbility(10f, 200f, 60f));
|
||||
abilities.add(new ShieldFieldAbility(15f, 30f, 60f * 5, 60f));
|
||||
|
||||
weapons.add(new Weapon("heal-shotgun-weapon"){{
|
||||
x = 5f;
|
||||
@@ -199,8 +201,9 @@ public class UnitTypes implements ContentList{
|
||||
|
||||
mineTier = 2;
|
||||
mineSpeed = 7f;
|
||||
drawShields = false;
|
||||
|
||||
abilities.add(new HealFieldAbility(15f, 170f, 60f));
|
||||
abilities.add(new ForceFieldAbility(60f, 0.12f, 200f, 60f * 8));
|
||||
|
||||
weapons.add(new Weapon("beam-weapon"){{
|
||||
shake = 2f;
|
||||
|
||||
Reference in New Issue
Block a user