summaryrefslogtreecommitdiff
path: root/src/resources/questdb.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-07-14Fix quests window destruction and add QuestDB::initThorbjørn Lindeijer1-0/+5
The init call makes sure there are no quests loaded, which is necessary because `SettingsManager::unload` is only called on exit and not when switching servers. Closes #112
2025-07-04Added logging priorities and use SDLs logging facilitiesThorbjørn Lindeijer1-5/+5
By using SDL logging, we can rely on SDL to filter the log messages by their priority before they get sent to our custom output function. For example, we now no longer get entries for created and destroyed Window instances by default, since these have only "debug" priority whereas the default priority for the "app" category is "info". We can also get log messages raised by SDL itself in our log now. Log levels can be controlled per category through the "SDL_LOGGING" environment variable. Many existing log messages have been assigned a category based on their existing prefix.
2025-07-02Implemented effects for new and completed questsThorbjørn Lindeijer1-0/+42
2025-07-02Added Quests windowThorbjørn Lindeijer1-6/+47
This window gives an overview over completed and currently active quests. A persistent checkbox toggles whether completed quests are shown. Item links are supported in quest texts. New window icon by meway. Completed quest icon for Mana theme copied from ManaPlus. The Quests window has no shortcut for now.
2025-06-23Apply quest effects to NPCsThorbjørn Lindeijer1-3/+36
The `TmwAthena::PlayerHandler` now handles the quest variables and applies the active quest effects to NPCs. They are updated when variables change or the map changes.
2025-06-17Add quest database support and parsing utilitiesThorbjørn Lindeijer1-0/+111
- Introduce QuestDB with quest/effect structures and XML parsing - Register questdb in CMake and settings manager - Add fromString overload for std::vector<int> parsing