v0.9.3: fixed ethereal chains playing sfx when they fail to throw
This commit is contained in:
+4
-2
@@ -125,8 +125,6 @@ public class EtherealChains extends Artifact {
|
|||||||
} else {
|
} else {
|
||||||
chainLocation( chain, curUser );
|
chainLocation( chain, curUser );
|
||||||
}
|
}
|
||||||
throwSound();
|
|
||||||
Sample.INSTANCE.play( Assets.Sounds.CHAINS );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -175,6 +173,8 @@ public class EtherealChains extends Artifact {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hero.busy();
|
hero.busy();
|
||||||
|
throwSound();
|
||||||
|
Sample.INSTANCE.play( Assets.Sounds.CHAINS );
|
||||||
hero.sprite.parent.add(new Chains(hero.sprite.center(), enemy.sprite.center(), new Callback() {
|
hero.sprite.parent.add(new Chains(hero.sprite.center(), enemy.sprite.center(), new Callback() {
|
||||||
public void call() {
|
public void call() {
|
||||||
Actor.add(new Pushing(enemy, enemy.pos, pulledPos, new Callback() {
|
Actor.add(new Pushing(enemy, enemy.pos, pulledPos, new Callback() {
|
||||||
@@ -232,6 +232,8 @@ public class EtherealChains extends Artifact {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hero.busy();
|
hero.busy();
|
||||||
|
throwSound();
|
||||||
|
Sample.INSTANCE.play( Assets.Sounds.CHAINS );
|
||||||
hero.sprite.parent.add(new Chains(hero.sprite.center(), DungeonTilemap.raisedTileCenterToWorld(newHeroPos), new Callback() {
|
hero.sprite.parent.add(new Chains(hero.sprite.center(), DungeonTilemap.raisedTileCenterToWorld(newHeroPos), new Callback() {
|
||||||
public void call() {
|
public void call() {
|
||||||
Actor.add(new Pushing(hero, hero.pos, newHeroPos, new Callback() {
|
Actor.add(new Pushing(hero, hero.pos, newHeroPos, new Callback() {
|
||||||
|
|||||||
Reference in New Issue
Block a user