v0.9.3: fixed ethereal chains playing sfx when they fail to throw

This commit is contained in:
Evan Debenham 2021-05-08 20:45:53 -04:00
parent 9c66287142
commit 3a13f59ebd

View File

@ -125,8 +125,6 @@ public class EtherealChains extends Artifact {
} else {
chainLocation( chain, curUser );
}
throwSound();
Sample.INSTANCE.play( Assets.Sounds.CHAINS );
}
@ -175,6 +173,8 @@ public class EtherealChains extends Artifact {
}
hero.busy();
throwSound();
Sample.INSTANCE.play( Assets.Sounds.CHAINS );
hero.sprite.parent.add(new Chains(hero.sprite.center(), enemy.sprite.center(), new Callback() {
public void call() {
Actor.add(new Pushing(enemy, enemy.pos, pulledPos, new Callback() {
@ -232,6 +232,8 @@ public class EtherealChains extends Artifact {
}
hero.busy();
throwSound();
Sample.INSTANCE.play( Assets.Sounds.CHAINS );
hero.sprite.parent.add(new Chains(hero.sprite.center(), DungeonTilemap.raisedTileCenterToWorld(newHeroPos), new Callback() {
public void call() {
Actor.add(new Pushing(hero, hero.pos, newHeroPos, new Callback() {