ReputationMgr changes part 2
--HG-- branch : trunk
This commit is contained in:
+18
-5
@@ -522,12 +522,25 @@ void LoadDBCStores(const std::string& dataPath)
|
|||||||
sLog.outString( ">> Initialized %d data stores", DBCFilesCount );
|
sLog.outString( ">> Initialized %d data stores", DBCFilesCount );
|
||||||
}
|
}
|
||||||
|
|
||||||
SimpleFactionsList const* GetFactionTeamList(uint32 faction)
|
SimpleFactionsList const* GetFactionTeamList(uint32 faction, bool &isTeamMember)
|
||||||
{
|
{
|
||||||
FactionTeamMap::const_iterator itr = sFactionTeamMap.find(faction);
|
for(FactionTeamMap::const_iterator itr = sFactionTeamMap.begin(); itr != sFactionTeamMap.end(); ++itr)
|
||||||
if(itr==sFactionTeamMap.end())
|
{
|
||||||
return NULL;
|
if(itr->first == faction)
|
||||||
return &itr->second;
|
{
|
||||||
|
isTeamMember = false;
|
||||||
|
return &itr->second;
|
||||||
|
}
|
||||||
|
for(SimpleFactionsList::const_iterator itr2 = itr->second.begin(); itr2 != itr->second.end(); ++itr2)
|
||||||
|
{
|
||||||
|
if((*itr2) == faction)
|
||||||
|
{
|
||||||
|
isTeamMember = true;
|
||||||
|
return &itr->second;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* GetPetName(uint32 petfamily, uint32 dbclang)
|
char* GetPetName(uint32 petfamily, uint32 dbclang)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
typedef std::list<uint32> SimpleFactionsList;
|
typedef std::list<uint32> SimpleFactionsList;
|
||||||
|
|
||||||
SimpleFactionsList const* GetFactionTeamList(uint32 faction);
|
SimpleFactionsList const* GetFactionTeamList(uint32 faction, bool &isTeamMember);
|
||||||
char* GetPetName(uint32 petfamily, uint32 dbclang);
|
char* GetPetName(uint32 petfamily, uint32 dbclang);
|
||||||
uint32 GetTalentSpellCost(uint32 spellId);
|
uint32 GetTalentSpellCost(uint32 spellId);
|
||||||
TalentSpellPos const* GetTalentSpellPos(uint32 spellId);
|
TalentSpellPos const* GetTalentSpellPos(uint32 spellId);
|
||||||
|
|||||||
Reference in New Issue
Block a user