mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 06:48:20 +00:00
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files * Code cleanup
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#include "../client.h"
|
||||
|
||||
void command_max_all_skills(Client *c, const Seperator *sep)
|
||||
{
|
||||
if (c) {
|
||||
Client *client_target = (c->GetTarget() ? (c->GetTarget()->IsClient() ? c->GetTarget()->CastToClient() : c)
|
||||
: c);
|
||||
auto Skills = EQ::skills::GetSkillTypeMap();
|
||||
for (auto &skills_iter : Skills) {
|
||||
auto skill_id = skills_iter.first;
|
||||
auto current_skill_value = (
|
||||
(EQ::skills::IsSpecializedSkill(skill_id)) ?
|
||||
50 :
|
||||
content_db.GetSkillCap(client_target->GetClass(), skill_id, client_target->GetLevel())
|
||||
);
|
||||
client_target->SetSkill(skill_id, current_skill_value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user