v2.2.0: fixed rogue's foresight triggering on mining level
This commit is contained in:
@@ -509,7 +509,7 @@ public class GameScene extends PixelScene {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Dungeon.hero.hasTalent(Talent.ROGUES_FORESIGHT)
|
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;
|
int reqSecrets = Dungeon.level.feeling == Level.Feeling.SECRETS ? 2 : 1;
|
||||||
for (Room r : ((RegularLevel) Dungeon.level).rooms()){
|
for (Room r : ((RegularLevel) Dungeon.level).rooms()){
|
||||||
if (r instanceof SecretRoom) reqSecrets--;
|
if (r instanceof SecretRoom) reqSecrets--;
|
||||||
|
|||||||
Reference in New Issue
Block a user