v0.4.1: fixed some visual bugs involving guards chains

This commit is contained in:
Evan Debenham 2016-07-20 19:24:29 -04:00 committed by Evan Debenham
parent 43f3582e1e
commit 454c82d758

View File

@ -108,7 +108,8 @@ public class Guard extends Mob {
yell( Messages.get(this, "scorpion") ); yell( Messages.get(this, "scorpion") );
sprite.parent.add(new Chains(pos, enemy.pos, new Callback() { sprite.parent.add(new Chains(pos, enemy.pos, new Callback() {
public void call() { public void call() {
Actor.addDelayed(new Pushing(enemy, enemy.pos, newPosFinal), -1); Actor.addDelayed(new Pushing(enemy, enemy.pos, newPosFinal, new Callback(){
public void call() {
enemy.pos = newPosFinal; enemy.pos = newPosFinal;
Dungeon.level.press(newPosFinal, enemy); Dungeon.level.press(newPosFinal, enemy);
Cripple.prolong(enemy, Cripple.class, 4f); Cripple.prolong(enemy, Cripple.class, 4f);
@ -116,6 +117,8 @@ public class Guard extends Mob {
Dungeon.hero.interrupt(); Dungeon.hero.interrupt();
Dungeon.observe(); Dungeon.observe();
} }
}
}), -1);
next(); next();
} }
})); }));