mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Commands] Cleanup #reloadzps Command. (#2129)
* [Commands] Cleanup #reloadzps Command. - Cleanup messages and logic. - Make reloading of zone points global instead of zone specific. * Further cleanup. - Add zone->GetZoneDescription(). - Add mob->GetTargetDescription(mob). * Final cleanup. * Typo.
This commit is contained in:
+10
-10
@@ -1733,24 +1733,24 @@ void ClientTaskState::ShowClientTaskInfoMessage(ClientTaskInformation *task, Cli
|
||||
}
|
||||
}
|
||||
|
||||
void ClientTaskState::ShowClientTasks(Client *client)
|
||||
void ClientTaskState::ShowClientTasks(Client* who, Client *to)
|
||||
{
|
||||
client->Message(Chat::White, "------------------------------------------------");
|
||||
client->Message(
|
||||
to->SendChatLineBreak();
|
||||
|
||||
to->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Task Information for {} ({})",
|
||||
client->GetCleanName(),
|
||||
client->GetID()
|
||||
"Task Information for {}",
|
||||
to->GetTargetDescription(who, TargetDescriptionType::UCSelf)
|
||||
).c_str()
|
||||
);
|
||||
|
||||
if (m_active_task.task_id != TASKSLOTEMPTY) {
|
||||
ShowClientTaskInfoMessage(&m_active_task, client);
|
||||
ShowClientTaskInfoMessage(&m_active_task, to);
|
||||
}
|
||||
|
||||
if (m_active_shared_task.task_id != TASKSLOTEMPTY) {
|
||||
ShowClientTaskInfoMessage(&m_active_shared_task, client);
|
||||
ShowClientTaskInfoMessage(&m_active_shared_task, to);
|
||||
}
|
||||
|
||||
for (auto &active_quest : m_active_quests) {
|
||||
@@ -1758,10 +1758,10 @@ void ClientTaskState::ShowClientTasks(Client *client)
|
||||
continue;
|
||||
}
|
||||
|
||||
ShowClientTaskInfoMessage(&active_quest, client);
|
||||
ShowClientTaskInfoMessage(&active_quest, to);
|
||||
}
|
||||
|
||||
client->Message(Chat::White, "------------------------------------------------");
|
||||
to->SendChatLineBreak();
|
||||
}
|
||||
|
||||
// TODO: Shared Task
|
||||
|
||||
Reference in New Issue
Block a user