v0.9.1: rejuvenating steps now produces furrowed grass when regen is off
This commit is contained in:
parent
086c0a56d8
commit
7a4c21e81f
|
@ -938,7 +938,12 @@ public abstract class Level implements Bundlable {
|
||||||
if ( (map[ch.pos] == Terrain.GRASS || map[ch.pos] == Terrain.EMBERS)
|
if ( (map[ch.pos] == Terrain.GRASS || map[ch.pos] == Terrain.EMBERS)
|
||||||
&& ch == Dungeon.hero && Dungeon.hero.hasTalent(Talent.REJUVENATING_STEPS)
|
&& ch == Dungeon.hero && Dungeon.hero.hasTalent(Talent.REJUVENATING_STEPS)
|
||||||
&& ch.buff(Talent.RejuvenatingStepsCooldown.class) == null){
|
&& 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 {
|
||||||
set(ch.pos, Terrain.HIGH_GRASS);
|
set(ch.pos, Terrain.HIGH_GRASS);
|
||||||
|
}
|
||||||
GameScene.updateMap(ch.pos);
|
GameScene.updateMap(ch.pos);
|
||||||
Buff.affect(ch, Talent.RejuvenatingStepsCooldown.class, 15f - 5f*Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS));
|
Buff.affect(ch, Talent.RejuvenatingStepsCooldown.class, 15f - 5f*Dungeon.hero.pointsInTalent(Talent.REJUVENATING_STEPS));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user