v0.9.1: implemented the rejuvenating steps talent

This commit is contained in:
Evan Debenham 2020-11-30 14:33:36 -05:00
parent 69d6d6c505
commit c4b9a1a72a

View File

@ -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]){