mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-12 05:10:32 +00:00
[Commands] Cleanup #setskill Command. (#1704)
* [Commands] Cleanup #setskill Command. - Cleanup message and logic. * Optimize GetSkillName().
This commit is contained in:
1 parent
32d606c667
commit
b17c24d2df
2 files changed
+48
-25
No files matched your search
+2
-6
@@ -263,12 +263,8 @@ const std::map<EQ::skills::SkillType, std::string>& EQ::skills::GetSkillTypeMap(
|
||||
std::string EQ::skills::GetSkillName(SkillType skill)
|
||||
{
|
||||
if (skill >= Skill1HBlunt && skill <= Skill2HPiercing) {
|
||||
std::map<SkillType, std::string> skills = GetSkillTypeMap();
|
||||
for (auto current_skill : skills) {
|
||||
if (skill == current_skill.first) {
|
||||
return current_skill.second;
|
||||
}
|
||||
}
|
||||
auto skills = GetSkillTypeMap();
|
||||
return skills[skill];
|
||||
}
|
||||
return std::string();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user