v0.9.3: fixed incorrect actor timing in potion of dragons breath

This commit is contained in:
Evan Debenham 2021-05-02 17:02:36 -04:00
parent 07c3e9d500
commit adf5233584

View File

@ -70,6 +70,7 @@ public class PotionOfDragonsBreath extends ExoticPotion {
detach(curUser.belongings.backpack); detach(curUser.belongings.backpack);
} else if (cell != null) { } else if (cell != null) {
identify(); identify();
curUser.busy();
Sample.INSTANCE.play( Assets.Sounds.DRINK ); Sample.INSTANCE.play( Assets.Sounds.DRINK );
curUser.sprite.operate(curUser.pos, new Callback() { curUser.sprite.operate(curUser.pos, new Callback() {
@Override @Override
@ -77,7 +78,6 @@ public class PotionOfDragonsBreath extends ExoticPotion {
curItem.detach(curUser.belongings.backpack); curItem.detach(curUser.belongings.backpack);
curUser.spend(1f);
curUser.sprite.idle(); curUser.sprite.idle();
curUser.sprite.zap(cell); curUser.sprite.zap(cell);
Sample.INSTANCE.play( Assets.Sounds.BURNING ); Sample.INSTANCE.play( Assets.Sounds.BURNING );
@ -146,7 +146,7 @@ public class PotionOfDragonsBreath extends ExoticPotion {
} }
} }
curUser.next(); curUser.spendAndNext(1f);
} }
}); });