Bugfixes / Negative knockback / Unit progress

This commit is contained in:
Anuken
2020-07-11 23:35:58 -04:00
parent 430eef02e2
commit dad5b186db
16 changed files with 39 additions and 12 deletions

View File

@@ -632,6 +632,15 @@ public class Fx{
}),
sapped = new Effect(40f, e -> {
color(Pal.sap);
randLenVectors(e.id, 2, 1f + e.fin() * 2f, (x, y) -> {
Fill.square(e.x + x, e.y + y, e.fslope() * 1.1f, 45f);
});
}),
oily = new Effect(42f, e -> {
color(Liquids.oil.color);

View File

@@ -9,7 +9,7 @@ import mindustry.type.StatusEffect;
import static mindustry.Vars.*;
public class StatusEffects implements ContentList{
public static StatusEffect none, burning, freezing, wet, melting, tarred, overdrive, shielded, shocked, blasted, corroded, boss;
public static StatusEffect none, burning, freezing, wet, melting, sapped, tarred, overdrive, shielded, shocked, blasted, corroded, boss;
@Override
public void load(){
@@ -74,6 +74,13 @@ public class StatusEffects implements ContentList{
});
}};
sapped = new StatusEffect("sapped"){{
speedMultiplier = 0.7f;
armorMultiplier = 0.8f;
effect = Fx.sapped;
effectChance = 0.1f;
}};
tarred = new StatusEffect("tarred"){{
speedMultiplier = 0.6f;
effect = Fx.oily;

View File

@@ -71,7 +71,7 @@ public class UnitTypes implements ContentList{
hitsize = 9f;
range = 10f;
health = 500;
armor = 1f;
armor = 2f;
immunities.add(StatusEffects.burning);
@@ -91,7 +91,7 @@ public class UnitTypes implements ContentList{
rotateSpeed = 3f;
targetAir = false;
health = 790;
armor = 4f;
armor = 5f;
weapons.add(new Weapon("artillery"){{
y = 1f;
@@ -267,6 +267,7 @@ public class UnitTypes implements ContentList{
legTrns = 0.6f;
legMoveSpace = 1.4f;
hovering = true;
armor = 3f;
weapons.add(new Weapon("eruption"){{
shootY = 3f;
@@ -290,7 +291,7 @@ public class UnitTypes implements ContentList{
spiroct = new UnitType("spiroct"){{
speed = 0.4f;
drag = 0.4f;
hitsize = 10f;
hitsize = 12f;
rotateSpeed = 3f;
health = 600;
immunities = ObjectSet.with(StatusEffects.burning, StatusEffects.melting);
@@ -300,6 +301,7 @@ public class UnitTypes implements ContentList{
legMoveSpace = 1.4f;
legBaseOffset = 2f;
hovering = true;
armor = 3f;
weapons.add(new Weapon("spiroct-weapon"){{
shootY = 4f;
@@ -314,12 +316,13 @@ public class UnitTypes implements ContentList{
bullet = new SapBulletType(){{
length = 75f;
damage = 14;
damage = 15;
shootEffect = Fx.shootSmall;
hitColor = color = Color.valueOf("bf92f9");
despawnEffect = Fx.none;
width = 0.54f;
lifetime = 35f;
knockback = -1f;
}};
}});
@@ -331,12 +334,13 @@ public class UnitTypes implements ContentList{
bullet = new SapBulletType(){{
length = 40f;
damage = 9;
damage = 10;
shootEffect = Fx.shootSmall;
hitColor = color = Color.valueOf("bf92f9");
despawnEffect = Fx.none;
width = 0.4f;
lifetime = 25f;
knockback = -0.5f;
}};
}});
}};