v0.4.2: fixed excessive particle effects on blazing traps
This commit is contained in:
parent
e43e7b995d
commit
22585dd223
|
@ -45,13 +45,14 @@ public class BlazingTrap extends Trap {
|
||||||
public void activate() {
|
public void activate() {
|
||||||
PathFinder.buildDistanceMap( pos, BArray.not( Level.solid, null ), 2 );
|
PathFinder.buildDistanceMap( pos, BArray.not( Level.solid, null ), 2 );
|
||||||
for (int i = 0; i < PathFinder.distance.length; i++) {
|
for (int i = 0; i < PathFinder.distance.length; i++) {
|
||||||
if (PathFinder.distance[i] < Integer.MAX_VALUE)
|
if (PathFinder.distance[i] < Integer.MAX_VALUE) {
|
||||||
if (Level.pit[i] || Level.water[i])
|
if (Level.pit[i] || Level.water[i])
|
||||||
GameScene.add(Blob.seed( i, 1, Fire.class));
|
GameScene.add(Blob.seed(i, 1, Fire.class));
|
||||||
else
|
else
|
||||||
GameScene.add(Blob.seed( i, 5, Fire.class));
|
GameScene.add(Blob.seed(i, 5, Fire.class));
|
||||||
CellEmitter.get(i).burst(FlameParticle.FACTORY, 5);
|
CellEmitter.get(i).burst(FlameParticle.FACTORY, 5);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Sample.INSTANCE.play(Assets.SND_BURNING);
|
Sample.INSTANCE.play(Assets.SND_BURNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user