private void restore() throws IOException { DriedRose.clearHeldGhostHero(); GameLog.wipe(); Dungeon.loadGame( GamesInProgress.curSlot ); if (Dungeon.depth == -1) { Dungeon.depth = Statistics.deepestFloor; Dungeon.switchLevel( Dungeon.loadLevel( GamesInProgress.curSlot ), -1 ); } else { Level level = Dungeon.loadLevel( GamesInProgress.curSlot ); Dungeon.switchLevel( level, Dungeon.hero.pos ); } }
private void restore() throws IOException { DriedRose.clearHeldGhostHero(); GameLog.wipe(); Dungeon.loadGame( GamesInProgress.curSlot ); if (Dungeon.depth == -1) { Dungeon.depth = Statistics.deepestFloor; Dungeon.switchLevel( Dungeon.loadLevel( GamesInProgress.curSlot ), -1 ); } else { Level level = Dungeon.loadLevel( GamesInProgress.curSlot ); Dungeon.switchLevel( level, Dungeon.hero.pos ); } }
private void descend() throws IOException { if (Dungeon.hero == null) { DriedRose.clearHeldGhostHero(); Dungeon.init(); if (noStory) { Dungeon.chapters.add( WndStory.ID_SEWERS ); noStory = false; } GameLog.wipe(); } else { DriedRose.holdGhostHero( Dungeon.level ); Dungeon.saveAll(); } Level level; if (Dungeon.depth >= Statistics.deepestFloor) { level = Dungeon.newLevel(); } else { Dungeon.depth++; level = Dungeon.loadLevel( GamesInProgress.curSlot ); } Dungeon.switchLevel( level, level.entrance ); }
private void descend() throws IOException { if (Dungeon.hero == null) { DriedRose.clearHeldGhostHero(); Dungeon.init(); if (noStory) { Dungeon.chapters.add( WndStory.ID_SEWERS ); noStory = false; } GameLog.wipe(); } else { DriedRose.holdGhostHero( Dungeon.level ); Dungeon.saveAll(); } Level level; if (Dungeon.depth >= Statistics.deepestFloor) { level = Dungeon.newLevel(); } else { Dungeon.depth++; level = Dungeon.loadLevel( GamesInProgress.curSlot ); } Dungeon.switchLevel( level, level.entrance ); }