v0.9.1: rejuvenating steps now produces furrowed grass when regen is off

This commit is contained in:
Evan Debenham 2020-12-05 15:39:23 -05:00
parent 086c0a56d8
commit 7a4c21e81f

View File

@ -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));
}