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

View File

@@ -187,15 +187,16 @@ public class EtherealChains extends Artifact {
Actor.add(new Pushing(enemy, enemy.pos, pulledPos, new Callback() {
public void call() {
enemy.pos = pulledPos;
Dungeon.level.occupyCell(enemy);
Dungeon.observe();
GameScene.updateFog();
hero.spendAndNext(1f);
charge -= chargeUse;
Invisibility.dispel(hero);
Talent.onArtifactUsed(hero);
updateQuickslot();
Dungeon.level.occupyCell(enemy);
Dungeon.observe();
GameScene.updateFog();
hero.spendAndNext(1f);
}
}));
hero.next();
@@ -252,15 +253,16 @@ public class EtherealChains extends Artifact {
Actor.add(new Pushing(hero, hero.pos, newHeroPos, new Callback() {
public void call() {
hero.pos = newHeroPos;
Dungeon.level.occupyCell(hero);
hero.spendAndNext(1f);
Dungeon.observe();
GameScene.updateFog();
charge -= chargeUse;
Invisibility.dispel(hero);
Talent.onArtifactUsed(hero);
updateQuickslot();
Dungeon.level.occupyCell(hero);
hero.spendAndNext(1f);
Dungeon.observe();
GameScene.updateFog();
}
}));
hero.next();