v2.3.0: fixed various cases where tutorial could become stuck

This commit is contained in:
Evan Debenham
2024-01-02 19:41:00 -05:00
parent c581d6a7bd
commit da1e844e03
2 changed files with 4 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ public class EntranceRoom extends StandardRoom {
Random.IntRange( top + 1, bottom - 2 )));
} while (pos == level.entrance() || level.findMob(level.entrance()) != null);
level.drop( new Guidebook(), pos );
Document.ADVENTURERS_GUIDE.deletePage(Document.GUIDE_INTRO);
}
//places the third guidebook page on floor 2

View File

@@ -568,7 +568,9 @@ public class GameScene extends PixelScene {
//Tutorial
if (SPDSettings.intro()){
if (ControllerHandler.isControllerConnected()) {
if (Document.ADVENTURERS_GUIDE.isPageFound(Document.GUIDE_INTRO)){
GameScene.flashForDocument(Document.ADVENTURERS_GUIDE, Document.GUIDE_INTRO);
} else if (ControllerHandler.isControllerConnected()) {
GLog.p(Messages.get(GameScene.class, "tutorial_move_controller"));
} else if (SPDSettings.interfaceSize() == 0) {
GLog.p(Messages.get(GameScene.class, "tutorial_move_mobile"));