v2.4.0: ethereal chains now resolve just before cell pressing

This commit is contained in:
Evan Debenham
2024-03-06 14:37:16 -05:00
parent 780966db42
commit 68895b1340
@@ -187,15 +187,16 @@ public class EtherealChains extends Artifact {
Actor.add(new Pushing(enemy, enemy.pos, pulledPos, new Callback() { Actor.add(new Pushing(enemy, enemy.pos, pulledPos, new Callback() {
public void call() { public void call() {
enemy.pos = pulledPos; enemy.pos = pulledPos;
Dungeon.level.occupyCell(enemy);
Dungeon.observe();
GameScene.updateFog();
hero.spendAndNext(1f);
charge -= chargeUse; charge -= chargeUse;
Invisibility.dispel(hero); Invisibility.dispel(hero);
Talent.onArtifactUsed(hero); Talent.onArtifactUsed(hero);
updateQuickslot(); updateQuickslot();
Dungeon.level.occupyCell(enemy);
Dungeon.observe();
GameScene.updateFog();
hero.spendAndNext(1f);
} }
})); }));
hero.next(); hero.next();
@@ -252,15 +253,16 @@ public class EtherealChains extends Artifact {
Actor.add(new Pushing(hero, hero.pos, newHeroPos, new Callback() { Actor.add(new Pushing(hero, hero.pos, newHeroPos, new Callback() {
public void call() { public void call() {
hero.pos = newHeroPos; hero.pos = newHeroPos;
Dungeon.level.occupyCell(hero);
hero.spendAndNext(1f);
Dungeon.observe();
GameScene.updateFog();
charge -= chargeUse; charge -= chargeUse;
Invisibility.dispel(hero); Invisibility.dispel(hero);
Talent.onArtifactUsed(hero); Talent.onArtifactUsed(hero);
updateQuickslot(); updateQuickslot();
Dungeon.level.occupyCell(hero);
hero.spendAndNext(1f);
Dungeon.observe();
GameScene.updateFog();
} }
})); }));
hero.next(); hero.next();