From 4592c15dd64e5325e0d883f718fcbfd49f9a6b5f Mon Sep 17 00:00:00 2001 From: hg <4683435+hgtw@users.noreply.github.com> Date: Sat, 30 Jul 2022 20:17:24 -0400 Subject: [PATCH] [Tasks] Send Client Message for All Solo Task Updates (#2336) Live sends the task updated message for every solo quest and task increment (not just goal completed). Also changed color to what live uses now. There are some other color changes with shared task messages but they correspond with colors changed in client generated messages but probably not worth chasing down and causing inconsistency. --- zone/task_client_state.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zone/task_client_state.cpp b/zone/task_client_state.cpp index e157c99d2..cb67388f0 100644 --- a/zone/task_client_state.cpp +++ b/zone/task_client_state.cpp @@ -1195,7 +1195,7 @@ void ClientTaskState::IncrementDoneCount( // Send the updated task/activity_information list to the client task_manager->SendSingleActiveTaskToClient(client, *info, task_complete, false); // Inform the client the task has been updated, both by a chat message - client->MessageString(Chat::White, TASK_UPDATED, task_information->title.c_str()); + client->MessageString(Chat::DefaultText, TASK_UPDATED, task_information->title.c_str()); if (!ignore_quest_update) { std::string export_string = fmt::format( @@ -1255,6 +1255,10 @@ void ClientTaskState::IncrementDoneCount( } } else { + if (task_information->type != TaskType::Shared) { + client->MessageString(Chat::DefaultText, TASK_UPDATED, task_information->title.c_str()); + } + // Send an updated packet for this single activity_information task_manager->SendTaskActivityLong( client, @@ -2439,7 +2443,7 @@ void ClientTaskState::AcceptNewTask( task_manager->SendSingleActiveTaskToClient(client, *active_slot, false, true); client->StartTaskRequestCooldownTimer(); - client->MessageString(Chat::White, YOU_ASSIGNED_TASK, task->title.c_str()); + client->MessageString(Chat::DefaultText, YOU_ASSIGNED_TASK, task->title.c_str()); task_manager->SaveClientState(client, this); std::string export_string = std::to_string(task_id);