mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Commands] Cleanup #setskill Command. (#1704)
* [Commands] Cleanup #setskill Command. - Cleanup message and logic. * Optimize GetSkillName().
This commit is contained in:
+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