Exemple #1
0
 public static bool AttemptMoveUpDungeonLevel()
 {
     if (DungeonMap.CanMoveUpToNextLevel())
     {
         if (MapLevel - 1 == 0)
         {
             MessageLog.Add("Coward", Swatch.DbBlood);
         }
         else
         {
             MapLevel     -= 1;
             MessageLog    = new MessageLog();
             CommandSystem = new CommandSystem();
             DungeonMap    = DungeonMaps[MapLevel - 1];
             DungeonMap.SetIsWalkable(Player.X, Player.Y, true);
             DungeonMap.PlacePlayerNearExit();
             DungeonMap.RescheduleExistingActors();
             _rootConsole.Title = $"RoguelikeGame - Level {MapLevel}";
         }
         return(true);
     }
     return(false);
 }