Anuken/Mindustry-Suggestions/issues/2730

This commit is contained in:
Anuken 2021-07-22 11:21:23 -04:00
parent af691c980d
commit 72fb66e5b2
2 changed files with 6 additions and 1 deletions

View File

@ -180,6 +180,7 @@ public class WaveSpawner{
private void spawnEffect(Unit unit){
unit.rotation = unit.angleTo(world.width()/2f * tilesize, world.height()/2f * tilesize);
unit.apply(StatusEffects.unmoving, 30f);
unit.apply(StatusEffects.invincible, 60f);
unit.add();
Call.spawnEffect(unit.x, unit.y, unit.rotation, unit.type);

View File

@ -12,7 +12,7 @@ import mindustry.graphics.*;
import static mindustry.Vars.*;
public class StatusEffects implements ContentList{
public static StatusEffect none, burning, freezing, unmoving, slow, wet, muddy, melting, sapped, tarred, overdrive, overclock, shielded, shocked, blasted, corroded, boss, sporeSlowed, disarmed, electrified;
public static StatusEffect none, burning, freezing, unmoving, slow, wet, muddy, melting, sapped, tarred, overdrive, overclock, shielded, shocked, blasted, corroded, boss, sporeSlowed, disarmed, electrified, invincible;
@Override
public void load(){
@ -188,5 +188,9 @@ public class StatusEffects implements ContentList{
color = Color.valueOf("e9ead3");
disarm = true;
}};
invincible = new StatusEffect("invincible"){{
healthMultiplier = Float.POSITIVE_INFINITY;
}};
}
}