diff --git a/logs/game.log b/logs/game.log index a94b967..5538d4b 100644 --- a/logs/game.log +++ b/logs/game.log @@ -3,3 +3,46 @@ [2026-06-11 15:28:12] Player opened chest in location: Entrance Hall [2026-06-11 15:28:12] Player received item ID: 101 [2026-06-11 15:28:12] Player received item ID: 101 +[2026-06-11 16:07:50] Game started +[2026-06-11 16:08:03] Game started +[2026-06-11 16:08:05] New game started. Player name: Zero +[2026-06-11 16:08:20] Wrong riddle answer in location: Entrance Hall +[2026-06-11 16:08:28] Player selected dialog option with NPC: Old Guard +[2026-06-11 16:08:29] Player opened chest in location: Entrance Hall +[2026-06-11 16:08:29] Player received item ID: 101 +[2026-06-11 16:08:29] Player received item ID: 101 +[2026-06-11 16:08:32] Player entered location: Old Corridor +[2026-06-11 16:08:34] Combat started with NPC: Dungeon Bandit +[2026-06-11 16:08:36] NPC defeated: Dungeon Bandit +[2026-06-11 16:08:38] Player opened chest in location: Old Corridor +[2026-06-11 16:08:38] Player received item ID: 101 +[2026-06-11 16:08:38] Player received item ID: 201 +[2026-06-11 16:08:41] Riddle solved in location: Old Corridor +[2026-06-11 16:08:41] Player entered location: Guard Room +[2026-06-11 16:08:46] Player selected dialog option with NPC: Archivist +[2026-06-11 16:08:46] Combat started with NPC: Archivist +[2026-06-11 16:08:55] NPC defeated: Archivist +[2026-06-11 16:08:59] Riddle solved in location: Guard Room +[2026-06-11 16:08:59] Player entered location: Library +[2026-06-11 16:09:03] Wrong riddle answer in location: Library +[2026-06-11 16:09:07] Riddle solved in location: Library +[2026-06-11 16:09:07] Player entered location: Final Gate +[2026-06-11 16:09:13] Player selected dialog option with NPC: Old Guard +[2026-06-11 16:09:29] Wrong riddle answer in location: Final Gate +[2026-06-11 16:09:53] Riddle solved in location: Final Gate +[2026-06-11 16:09:53] Player entered location: Library +[2026-06-11 16:09:57] Player selected dialog option with NPC: Old Guard +[2026-06-11 16:10:00] Player entered location: Final Gate +[2026-06-11 16:10:08] Player selected dialog option with NPC: Old Guard +[2026-06-11 16:10:08] Combat started with NPC: Old Guard +[2026-06-11 16:10:12] NPC defeated: Old Guard +[2026-06-11 16:10:16] Player entered location: Library +[2026-06-11 16:10:30] Player entered location: Final Gate +[2026-06-11 16:10:36] Player opened chest in location: Final Gate +[2026-06-11 16:10:36] Player received item ID: 101 +[2026-06-11 16:10:36] Player received item ID: 102 +[2026-06-11 16:10:36] Player received item ID: 202 +[2026-06-11 16:10:39] Player entered location: Library +[2026-06-11 16:10:42] Player opened chest in location: Library +[2026-06-11 16:10:42] Player received item ID: 102 +[2026-06-11 16:10:42] Player received item ID: 202 diff --git a/src/game.cpp b/src/game.cpp index 255cb15..63a93d8 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -208,6 +208,14 @@ void Game::handleTile(char tile) { interactWithNPC(*location); } else if (tile == 'D') { + + if (location->id == 5) { + std::cout << "\nYou escaped from the labyrinth!\n"; + std::cout << "Victory!\n"; + isRunning = false; + return; + } + if (!location->riddle.isSolved) { bool solved = solveRiddle(*location);