[Rules] Add Rule to Disable NPC Last Names. (#2227)

* [Rules] Add Rule to Disable NPC Last Names.
- Add NPC:DisableLastNames to disable NPC Last Names.
- Fix #npcedit lastname to allow you to use an empty string.

* Cleanup of classes in naming.

* Duplicate.

* Update classes.cpp
This commit is contained in:
Kinglykrab
2022-06-04 14:01:00 -04:00
committed by GitHub
parent 7160aa651e
commit 8f729fe948
13 changed files with 135 additions and 177 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ void command_findclass(Client *c, const Seperator *sep)
if (sep->IsNumber(1)) {
int class_id = std::stoi(sep->arg[1]);
if (class_id >= WARRIOR && class_id <= MERCERNARY_MASTER) {
if (class_id >= WARRIOR && class_id <= MERCENARY_MASTER) {
std::string class_name = GetClassIDName(class_id);
c->Message(
Chat::White,
@@ -41,7 +41,7 @@ void command_findclass(Client *c, const Seperator *sep)
} else {
auto search_criteria = str_tolower(sep->argplus[1]);
int found_count = 0;
for (uint16 class_id = WARRIOR; class_id <= MERCERNARY_MASTER; class_id++) {
for (uint16 class_id = WARRIOR; class_id <= MERCENARY_MASTER; class_id++) {
std::string class_name = GetClassIDName(class_id);
auto class_name_lower = str_tolower(class_name);
if (