From 2ccf692167e39b23985806cd06d7506cc19c39f5 Mon Sep 17 00:00:00 2001 From: hg <4683435+hgtw@users.noreply.github.com> Date: Sat, 30 Jul 2022 14:33:05 -0400 Subject: [PATCH] [Tasks] Use CashReward for Tasks (#2332) Also removes the sound which does not occur --- zone/task_client_state.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/zone/task_client_state.cpp b/zone/task_client_state.cpp index e845263d2..e157c99d2 100644 --- a/zone/task_client_state.cpp +++ b/zone/task_client_state.cpp @@ -1340,7 +1340,6 @@ void ClientTaskState::RewardTask(Client *client, TaskInformation *task_informati int platinum, gold, silver, copper; copper = task_information->cash_reward; - client->AddMoneyToPP(copper, true); platinum = copper / 1000; copper = copper - (platinum * 1000); @@ -1349,23 +1348,7 @@ void ClientTaskState::RewardTask(Client *client, TaskInformation *task_informati silver = copper / 10; copper = copper - (silver * 10); - if ( - copper || - silver || - gold || - platinum - ) { - client->MessageString( - Chat::Yellow, - YOU_RECEIVE, - Strings::Money( - platinum, - gold, - silver, - copper - ).c_str() - ); - } + client->CashReward(copper, silver, gold, platinum); } int32 experience_reward = task_information->experience_reward; if (experience_reward > 0) { @@ -1392,8 +1375,6 @@ void ClientTaskState::RewardTask(Client *client, TaskInformation *task_informati client->AddCrystals(0, task_information->reward_points); } } - - client->SendSound(); } bool ClientTaskState::IsTaskActive(int task_id)