diff --git a/QuestScripts.cpp b/QuestScripts.cpp index 69e633a..321a6ff 100644 --- a/QuestScripts.cpp +++ b/QuestScripts.cpp @@ -9,12 +9,13 @@ namespace ZL std::function createRoom1Logic() { return [](GameObjectManager& gom, size_t ms) +// Simple test logic { -// if (gom.inventory.HasItem("book")) { -// std::cout << "[Room 1] Игрок поднял книгу!\n"; -// -// gom.switch_room(1); -// } + if (GetItemByName("book")) { + std::cout << "[Room 1] Игрок поднял книгу!\n"; + + gom.switch_room(1); + } }; }