[Commands] Overhauled #npcedit. (#1538)

* [Commands] Overhauled #npcedit.
- Added missing columns like untargetable, show_name, exp_mod, etc.
- Put stats in order of column appearance in table within help message and within code.
- Converted StringFormat to fmt::format.
- Added a GetGenderName() helper method.
- Prettified response messages of nearly every #npcedit option.

All tested and ready to go.

Would like input about possibly changing some of the command arguments to match the table column names more closely, example being "spell" should be "npc_spells_id".

* Cleanup.

* Fix indentation.
This commit is contained in:
Kinglykrab
2021-09-19 19:32:21 -04:00
committed by GitHub
parent 6a5face0aa
commit c0de178173
4 changed files with 808 additions and 646 deletions
+794 -638
View File
File diff suppressed because it is too large Load Diff
+1 -8
View File
@@ -3439,14 +3439,7 @@ void QuestManager::SetEXPModifierByCharID(uint32 character_id, uint32 zone_id, d
}
std::string QuestManager::getgendername(uint32 gender_id) {
auto gender_name = "Unknown";
if (gender_id == MALE) {
gender_name = "Male";
} else if (gender_id == FEMALE) {
gender_name = "Female";
} else if (gender_id == NEUTER) {
gender_name = "Neuter";
}
std::string gender_name = GetGenderName(gender_id);
return gender_name;
}