mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Tasks] Add Task Reward Points Field (#2317)
* Add task reward points field This replaces the separate DoN crystal reward fields with points and point_type fields. This will make it easier to import data from packet/client captures and possibly better support any future clients or tasks that don't reward through the newer reward window. * Fix manifest column check
This commit is contained in:
@@ -1381,9 +1381,16 @@ void ClientTaskState::RewardTask(Client *client, TaskInformation *task_informati
|
||||
}
|
||||
}
|
||||
|
||||
if (task_information->reward_radiant_crystals > 0 || task_information->reward_ebon_crystals > 0)
|
||||
if (task_information->reward_points > 0)
|
||||
{
|
||||
client->AddCrystals(task_information->reward_radiant_crystals, task_information->reward_ebon_crystals);
|
||||
if (task_information->reward_point_type == AltCurrencyType::RadiantCrystal)
|
||||
{
|
||||
client->AddCrystals(task_information->reward_points, 0);
|
||||
}
|
||||
else if (task_information->reward_point_type == AltCurrencyType::EbonCrystal)
|
||||
{
|
||||
client->AddCrystals(0, task_information->reward_points);
|
||||
}
|
||||
}
|
||||
|
||||
client->SendSound();
|
||||
|
||||
Reference in New Issue
Block a user