mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 11:31:30 +00:00
[Bug Fix] Fix Issue with Suffixes/Prefixes (#4723)
This commit is contained in:
parent
e2db8ffea8
commit
5296202e56
@ -57,34 +57,34 @@ EQApplicationPacket* TitleManager::MakeTitlesPacket(Client* c)
|
|||||||
return outapp;
|
return outapp;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string TitleManager::GetPrefix(int title_set)
|
std::string TitleManager::GetPrefix(int title_id)
|
||||||
{
|
{
|
||||||
if (!title_set) {
|
if (!title_id) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
auto e = std::find_if(
|
auto e = std::find_if(
|
||||||
titles.begin(),
|
titles.begin(),
|
||||||
titles.end(),
|
titles.end(),
|
||||||
[title_set](const auto& t) {
|
[title_id](const auto& t) {
|
||||||
return t.title_set == title_set;
|
return t.id == title_id;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
return e != titles.end() ? e->prefix : "";
|
return e != titles.end() ? e->prefix : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string TitleManager::GetSuffix(int title_set)
|
std::string TitleManager::GetSuffix(int title_id)
|
||||||
{
|
{
|
||||||
if (!title_set) {
|
if (!title_id) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
auto e = std::find_if(
|
auto e = std::find_if(
|
||||||
titles.begin(),
|
titles.begin(),
|
||||||
titles.end(),
|
titles.end(),
|
||||||
[title_set](const auto& t) {
|
[title_id](const auto& t) {
|
||||||
return t.title_set == title_set;
|
return t.id == title_id;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -15,8 +15,8 @@ public:
|
|||||||
bool LoadTitles();
|
bool LoadTitles();
|
||||||
|
|
||||||
EQApplicationPacket* MakeTitlesPacket(Client* c);
|
EQApplicationPacket* MakeTitlesPacket(Client* c);
|
||||||
std::string GetPrefix(int title_set);
|
std::string GetPrefix(int title_id);
|
||||||
std::string GetSuffix(int title_set);
|
std::string GetSuffix(int title_id);
|
||||||
std::vector<TitlesRepository::Titles> GetEligibleTitles(Client* c);
|
std::vector<TitlesRepository::Titles> GetEligibleTitles(Client* c);
|
||||||
bool IsNewAATitleAvailable(int aa_points, int class_id);
|
bool IsNewAATitleAvailable(int aa_points, int class_id);
|
||||||
bool IsNewTradeSkillTitleAvailable(int t, int skill_value);
|
bool IsNewTradeSkillTitleAvailable(int t, int skill_value);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user