@Override public void shatter(int cell) { if (Dungeon.level.heroFOV[cell]) { splash( cell ); Sample.INSTANCE.play( Assets.SND_SHATTER ); } PathFinder.buildDistanceMap( cell, BArray.not( Dungeon.level.solid, null ), 2 ); for (int i = 0; i < PathFinder.distance.length; i++) { if (PathFinder.distance[i] < Integer.MAX_VALUE) { Splash.at( i, 0x000000, 5); Char ch = Actor.findChar(i); if (ch != null){ Buff.affect(ch, Ooze.class).set( 20f ); } } } }
@Override public void shatter(int cell) { if (Dungeon.level.heroFOV[cell]) { splash( cell ); Sample.INSTANCE.play( Assets.SND_SHATTER ); } PathFinder.buildDistanceMap( cell, BArray.not( Dungeon.level.solid, null ), 2 ); for (int i = 0; i < PathFinder.distance.length; i++) { if (PathFinder.distance[i] < Integer.MAX_VALUE) { Splash.at( i, 0x000000, 5); Char ch = Actor.findChar(i); if (ch != null){ Buff.affect(ch, Ooze.class).set( 20f ); } } } }