private void reset() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); SpecialRoom.resetPitRoom(Dungeon.depth+1); Dungeon.depth--; Level level = Dungeon.newLevel(); Dungeon.switchLevel( level, level.entrance ); }
private void reset() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); SpecialRoom.resetPitRoom(Dungeon.depth+1); Dungeon.depth--; Level level = Dungeon.newLevel(); Dungeon.switchLevel( level, level.entrance ); }
private void returnTo() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); Dungeon.saveAll(); Dungeon.depth = returnDepth; Level level = Dungeon.loadLevel( GamesInProgress.curSlot ); Dungeon.switchLevel( level, returnPos ); }
private void ascend() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); Dungeon.saveAll(); Dungeon.depth--; Level level = Dungeon.loadLevel( GamesInProgress.curSlot ); Dungeon.switchLevel( level, level.exit ); }
private void ascend() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); Dungeon.saveAll(); Dungeon.depth--; Level level = Dungeon.loadLevel( GamesInProgress.curSlot ); Dungeon.switchLevel( level, level.exit ); }
private void returnTo() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); Dungeon.saveAll(); Dungeon.depth = returnDepth; Level level = Dungeon.loadLevel( GamesInProgress.curSlot ); Dungeon.switchLevel( level, returnPos ); }
private void resurrect() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); if (Dungeon.level.locked) { Dungeon.hero.resurrect( Dungeon.depth ); Dungeon.depth--; Level level = Dungeon.newLevel(); Dungeon.switchLevel( level, level.entrance ); } else { Dungeon.hero.resurrect( -1 ); Dungeon.resetLevel(); } }
private void resurrect() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); if (Dungeon.level.locked) { Dungeon.hero.resurrect( Dungeon.depth ); Dungeon.depth--; Level level = Dungeon.newLevel(); Dungeon.switchLevel( level, level.entrance ); } else { Dungeon.hero.resurrect( -1 ); Dungeon.resetLevel(); } }
private void fall() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); Buff.affect( Dungeon.hero, Chasm.Falling.class ); Dungeon.saveAll(); Level level; if (Dungeon.depth >= Statistics.deepestFloor) { level = Dungeon.newLevel(); } else { Dungeon.depth++; level = Dungeon.loadLevel( GamesInProgress.curSlot ); } Dungeon.switchLevel( level, level.fallCell( fallIntoPit )); }
private void fall() throws IOException { DriedRose.holdGhostHero( Dungeon.level ); Buff.affect( Dungeon.hero, Chasm.Falling.class ); Dungeon.saveAll(); Level level; if (Dungeon.depth >= Statistics.deepestFloor) { level = Dungeon.newLevel(); } else { Dungeon.depth++; level = Dungeon.loadLevel( GamesInProgress.curSlot ); } Dungeon.switchLevel( level, level.fallCell( fallIntoPit )); }
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 ); }