v2.1.1: fixed specific cases where player could exploit fixTime

This commit is contained in:
Evan Debenham
2023-06-08 11:46:31 -04:00
parent 575357fb32
commit 7264271781
2 changed files with 9 additions and 3 deletions

View File

@@ -544,6 +544,15 @@ public abstract class Level implements Bundlable {
//iron stomach does not persist through chasm falling
Talent.WarriorFoodImmunity foodImmune = Dungeon.hero.buff(Talent.WarriorFoodImmunity.class);
if (foodImmune != null) foodImmune.detach();
//spend the hero's partial turns, so the hero cannot take partial turns between floors
Dungeon.hero.spendToWhole();
for (Char ch : Actor.chars()){
//also adjust any mobs that are now ahead of the hero due to this
if (ch.cooldown() < Dungeon.hero.cooldown()){
ch.spendToWhole();
}
}
}
public void seal(){

View File

@@ -254,9 +254,6 @@ public class InterlevelScene extends PixelScene {
try {
if (Dungeon.hero != null){
Dungeon.hero.spendToWhole();
}
Actor.fixTime();
switch (mode) {