add player.trackedQuest

This commit is contained in:
Kae 2024-10-21 16:21:53 +11:00
parent aac3e53941
commit 99f78c3912

View File

@ -484,6 +484,10 @@ LuaCallbacks LuaBindings::makePlayerCallbacks(Player* player) {
return player->questManager()->hasCompleted(questId);
});
callbacks.registerCallback("trackedQuest", [player]() {
return player->questManager()->trackedQuest();
});
callbacks.registerCallback("setTrackedQuest", [player](Maybe<String> const& questId) {
return player->questManager()->setAsTracked(questId);
});