From 48479d1dc40a9f8879a28010d6786eae7bfc626f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 17 Jul 2020 19:08:06 -0400 Subject: [PATCH] v0.8.2: F2 entrance doors are now only guaranteed hidden the first time --- .../levels/painters/RegularPainter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RegularPainter.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RegularPainter.java index 998ce2af5..63bd88bc9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RegularPainter.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RegularPainter.java @@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.levels.painters; import com.shatteredpixel.shatteredpixeldungeon.Badges; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; +import com.shatteredpixel.shatteredpixeldungeon.journal.Document; import com.shatteredpixel.shatteredpixeldungeon.levels.Level; import com.shatteredpixel.shatteredpixeldungeon.levels.Patch; import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain; @@ -189,9 +190,9 @@ public abstract class RegularPainter extends Painter { d.type = Room.Door.Type.UNLOCKED; } - //entrance doors on floor 2 are hidden if the player hasn't beaten the first boss + //entrance doors on floor 2 are hidden if the player hasn't picked up 2nd guidebook page if (Dungeon.depth == 2 - && !Badges.isUnlocked(Badges.Badge.BOSS_SLAIN_1) + && !Document.ADVENTURERS_GUIDE.hasPage(Document.GUIDE_SEARCH_PAGE) && r instanceof EntranceRoom){ d.type = Room.Door.Type.HIDDEN; }