From 7a4c21e81ff435a2eb333ee94c48a527b7ac855d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 5 Dec 2020 15:39:23 -0500 Subject: [PATCH] v0.9.1: rejuvenating steps now produces furrowed grass when regen is off --- .../shatteredpixel/shatteredpixeldungeon/levels/Level.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 816f60bc0..20839b02a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -938,7 +938,12 @@ public abstract class Level implements Bundlable { 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){ - set(ch.pos, Terrain.HIGH_GRASS); + + if (Dungeon.hero.buff(LockedFloor.class) != null && !Dungeon.hero.buff(LockedFloor.class).regenOn()){ + set(ch.pos, Terrain.FURROWED_GRASS); + } else { + set(ch.pos, Terrain.HIGH_GRASS); + } GameScene.updateMap(ch.pos); Buff.affect(ch, Talent.RejuvenatingStepsCooldown.class, 15f - 5f*Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS)); }