v2.2.0: fixed rogue's foresight triggering on mining level

This commit is contained in:
Evan Debenham
2023-10-02 12:12:41 -04:00
parent 2b081bc1b5
commit 4eb37871fa
@@ -509,7 +509,7 @@ public class GameScene extends PixelScene {
}
if (Dungeon.hero.hasTalent(Talent.ROGUES_FORESIGHT)
&& Dungeon.level instanceof RegularLevel){
&& Dungeon.level instanceof RegularLevel && Dungeon.branch == 0){
int reqSecrets = Dungeon.level.feeling == Level.Feeling.SECRETS ? 2 : 1;
for (Room r : ((RegularLevel) Dungeon.level).rooms()){
if (r instanceof SecretRoom) reqSecrets--;