[Tasks] Send active elements in task select packet (#4051)

Only the first element was being serialized to show the start zone of
tasks. This was resulting in a blank description for tasks that only
have element descriptions.

Live sends all initial active elements for the task when sending this
packet. Any bracket text with these elements as a requirement will be
appended to the description.
This commit is contained in:
hg authored and GitHub committed 2024-02-10 03:23:24 -06:00
1 parent b280f50c99
commit 804b798068
2 files changed
+20 -5

No files matched your search

+11
View File
@@ -238,6 +238,17 @@ bool TaskManager::LoadTasks(int single_task)
}
}
// store initial active element ids for select window
if (ad->req_activity_id < 0 && ad->step <= task_data->selector_step)
{
if (ad->step < task_data->selector_step)
{
task_data->selector_step = ad->step;
task_data->selector_ids.clear();
}
task_data->selector_ids.push_back(activity_id);
}
LogTasksDetail(
"(Activity) task_id [{}] activity_id [{}] slot [{}] activity_type [{}] goal_method [{}] goal_count [{}] zones [{}]"
" target_name [{}] item_list [{}] skill_list [{}] spell_list [{}] description_override [{}]",