mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-13 00:05:23 +07:00
Anuken/Mindustry-Suggestions/issues/2730
This commit is contained in:
parent
af691c980d
commit
72fb66e5b2
@ -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);
|
||||
|
@ -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;
|
||||
}};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user