Formation cleanup

This commit is contained in:
Anuken
2020-08-16 15:54:41 -04:00
parent 01bd8d5148
commit 8dd4e9feb0
13 changed files with 82 additions and 8 deletions

View File

@@ -670,6 +670,12 @@ public class Fx{
}),
sporeSlowed = new Effect(40f, e -> {
color(Pal.spore);
Fill.circle(e.x, e.y, e.fslope() * 1.1f);
}),
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, sapped, tarred, overdrive, overclock, shielded, shocked, blasted, corroded, boss;
public static StatusEffect none, burning, freezing, wet, melting, sapped, tarred, overdrive, overclock, shielded, shocked, blasted, corroded, boss, sporeSlowed;
@Override
public void load(){
@@ -82,6 +82,12 @@ public class StatusEffects implements ContentList{
effectChance = 0.1f;
}};
sporeSlowed = new StatusEffect("sapped"){{
speedMultiplier = 0.8f;
effect = Fx.sapped;
effectChance = 0.04f;
}};
tarred = new StatusEffect("tarred"){{
speedMultiplier = 0.6f;
effect = Fx.oily;

View File

@@ -255,6 +255,8 @@ public class Weathers implements ContentList{
{
attrs.set(Attribute.spores, 0.5f);
attrs.set(Attribute.light, -0.1f);
status = StatusEffects.sporeSlowed;
statusGround = false;
}
@Override