[Commands] Add #findfaction Command. (#1697)

- Add #findfaction [search criteria] command.
- Cleanup other #find command messages/logic.
- Add GetMaxFaction() helper method.
- Add races.h defines for races 725-732.
This commit is contained in:
Kinglykrab
2021-11-09 21:23:38 -05:00
committed by GitHub
parent 211196a722
commit 328a94e2d4
4 changed files with 216 additions and 53 deletions
+1
View File
@@ -407,6 +407,7 @@ public:
bool GetFactionIdsForNPC(uint32 nfl_id, std::list<struct NPCFaction*> *faction_list, int32* primary_faction = 0); // improve faction handling
bool SetCharacterFactionLevel(uint32 char_id, int32 faction_id, int32 value, uint8 temp, faction_map &val_list); // needed for factions Dec, 16 2001
bool LoadFactionData();
inline uint32 GetMaxFaction() { return max_faction; }
/* AAs New */
bool LoadAlternateAdvancementAbilities(std::unordered_map<int, std::unique_ptr<AA::Ability>> &abilities,