[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
+1 -1
View File
@@ -265,7 +265,7 @@ NPC::NPC(const NPCType *npc_type_data, Spawn2 *in_respawn, const glm::vec4 &posi
HasAISpellEffects = false;
innate_proc_spell_id = 0;
if (GetClass() == MERCERNARY_MASTER && RuleB(Mercs, AllowMercs)) {
if (GetClass() == MERCENARY_MASTER && RuleB(Mercs, AllowMercs)) {
LoadMercTypes();
LoadMercs();
}