From 3b2aced50c7f198579f05f2426a9519eacdd8608 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 31 May 2021 22:05:48 -0400 Subject: [PATCH] v0.9.3: rejuv steps no longer triggers while levitating --- .../shatteredpixeldungeon/levels/Level.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index bd3b2e988..4949e6518 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -930,23 +930,23 @@ public abstract class Level implements Bundlable { Web.affectChar( ch ); } - if ( (map[ch.pos] == Terrain.GRASS || map[ch.pos] == Terrain.EMBERS) - && ch == Dungeon.hero && Dungeon.hero.hasTalent(Talent.REJUVENATING_STEPS) - && ch.buff(Talent.RejuvenatingStepsCooldown.class) == null){ - - if (Dungeon.hero.buff(LockedFloor.class) != null && !Dungeon.hero.buff(LockedFloor.class).regenOn()){ - set(ch.pos, Terrain.FURROWED_GRASS); - } else if (ch.buff(Talent.RejuvenatingStepsFurrow.class) != null && ch.buff(Talent.RejuvenatingStepsFurrow.class).count() >= 200) { - set(ch.pos, Terrain.FURROWED_GRASS); - } else { - set(ch.pos, Terrain.HIGH_GRASS); - Buff.count(ch, Talent.RejuvenatingStepsFurrow.class, 3 - Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS)); - } - GameScene.updateMap(ch.pos); - Buff.affect(ch, Talent.RejuvenatingStepsCooldown.class, 15f - 5f*Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS)); - } - if (!ch.flying){ + + if ( (map[ch.pos] == Terrain.GRASS || map[ch.pos] == Terrain.EMBERS) + && ch == Dungeon.hero && Dungeon.hero.hasTalent(Talent.REJUVENATING_STEPS) + && ch.buff(Talent.RejuvenatingStepsCooldown.class) == null){ + + if (Dungeon.hero.buff(LockedFloor.class) != null && !Dungeon.hero.buff(LockedFloor.class).regenOn()){ + set(ch.pos, Terrain.FURROWED_GRASS); + } else if (ch.buff(Talent.RejuvenatingStepsFurrow.class) != null && ch.buff(Talent.RejuvenatingStepsFurrow.class).count() >= 200) { + set(ch.pos, Terrain.FURROWED_GRASS); + } else { + set(ch.pos, Terrain.HIGH_GRASS); + Buff.count(ch, Talent.RejuvenatingStepsFurrow.class, 3 - Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS)); + } + GameScene.updateMap(ch.pos); + Buff.affect(ch, Talent.RejuvenatingStepsCooldown.class, 15f - 5f*Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS)); + } if (pit[ch.pos]){ if (ch == Dungeon.hero) {