From c4b9a1a72aa428795a501bea274884ff7e4fa011 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 30 Nov 2020 14:33:36 -0500 Subject: [PATCH] v0.9.1: implemented the rejuvenating steps talent --- .../shatteredpixel/shatteredpixeldungeon/levels/Level.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 314fda1bc..e06722fb8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -935,6 +935,13 @@ 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){ + set(ch.pos, Terrain.HIGH_GRASS); + Buff.affect(ch, Talent.RejuvenatingStepsCooldown.class, 15f - 5f*Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS)); + } + if (!ch.flying){ if (pit[ch.pos]){