[Tasks] Extend IsTaskCompleted to also be aware of shared task completion (#4714)

* [Tasks] Extend IsTaskCompleted to also be aware of shared task completion

* Fix my stupidity

* Update client.h
This commit is contained in:
Chris Miles
2025-02-24 16:31:35 -06:00
committed by GitHub
parent 80e8634a48
commit fa2ab11676
4 changed files with 41 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ public:
void AcceptNewTask(Client *client, int task_id, int npc_type_id, time_t accept_time, bool enforce_level_requirement = false);
void FailTask(Client *client, int task_id);
int TaskTimeLeft(int task_id);
bool IsTaskCompleted(int task_id);
bool IsTaskCompleted(int task_id, Client *c = nullptr);
bool AreTasksCompleted(const std::vector<int>& task_ids);
bool IsTaskActive(int task_id);
bool IsTaskActivityActive(int task_id, int activity_id);