v2.1.4: fixed noisemakers alerting if they are moved as they trigger
This commit is contained in:
+1
-8
@@ -47,13 +47,6 @@ public class Noisemaker extends Bomb {
|
|||||||
Buff.affect(Dungeon.hero, Trigger.class).set(cell);
|
Buff.affect(Dungeon.hero, Trigger.class).set(cell);
|
||||||
fuse = null;
|
fuse = null;
|
||||||
|
|
||||||
CellEmitter.center( cell ).start( Speck.factory( Speck.SCREAM ), 0.3f, 3 );
|
|
||||||
Sample.INSTANCE.play( Assets.Sounds.ALERT );
|
|
||||||
|
|
||||||
for (Mob mob : Dungeon.level.mobs.toArray( new Mob[0] )) {
|
|
||||||
mob.beckon( cell );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -92,7 +85,7 @@ public class Noisemaker extends Bomb {
|
|||||||
public void set(int cell){
|
public void set(int cell){
|
||||||
floor = Dungeon.depth;
|
floor = Dungeon.depth;
|
||||||
this.cell = cell;
|
this.cell = cell;
|
||||||
left = 6;
|
left = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user