[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:
Kinglykrab
2022-05-07 03:23:15 -04:00
committed by GitHub
parent 0b3065d7a9
commit 7df9b2974b
111 changed files with 2035 additions and 2864 deletions
+4 -4
View File
@@ -8,7 +8,7 @@ void command_traindisc(Client *c, const Seperator *sep)
}
if (sep->argnum < 1 || !sep->IsNumber(1)) {
c->Message(Chat::White, "FORMAT: #traindisc <max level> <min level>");
c->Message(Chat::White, "Usage: #traindisc [Max Level] [Min Level]");
return;
}
@@ -32,12 +32,12 @@ void command_traindisc(Client *c, const Seperator *sep)
}
if (max_level < 1 || min_level < 1) {
c->Message(Chat::White, "ERROR: Level must be greater than or equal to 1.");
c->Message(Chat::White, "Level must be greater than or equal to 1.");
return;
}
if (min_level > max_level) {
c->Message(Chat::White, "ERROR: Minimum Level must be less than or equal to Maximum Level.");
c->Message(Chat::White, "Minimum Level must be less than or equal to Maximum Level.");
return;
}
@@ -60,7 +60,7 @@ void command_traindisc(Client *c, const Seperator *sep)
fmt::format(
"{} learned for {}.",
discipline_message,
target->GetCleanName()
c->GetTargetDescription(target)
).c_str()
);
}