v0.3.2: visual tweaks to tengu's "puff" effect

This commit is contained in:
Evan Debenham 2015-11-02 13:14:59 -05:00 committed by Evan Debenham
parent 97484fc90d
commit 4b6cd0531a

View File

@ -188,13 +188,14 @@ public class Tengu extends Mob {
Actor.findChar(newPos) != null);
}
if (Dungeon.visible[pos]) CellEmitter.get( pos ).burst( Speck.factory( Speck.WOOL ), 6 );
sprite.move( pos, newPos );
move( newPos );
if (Dungeon.visible[newPos]) {
CellEmitter.get( newPos ).burst( Speck.factory( Speck.WOOL ), 6 );
if (Dungeon.visible[newPos]) CellEmitter.get( newPos ).burst( Speck.factory( Speck.WOOL ), 6 );
Sample.INSTANCE.play( Assets.SND_PUFF );
}
spend( 1 / speed() );
}