*Move most reputation/force faction reaction code to new ReputationMgr. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-26 13:53:32 -06:00
parent bdafaf4113
commit 68c3039715
17 changed files with 96 additions and 648 deletions

View File

@@ -5594,12 +5594,10 @@ bool ChatHandler::HandleQuestComplete(const char* args)
if(uint32 repFaction = pQuest->GetRepObjectiveFaction())
{
uint32 repValue = pQuest->GetRepObjectiveValue();
uint32 curRep = player->GetReputation(repFaction);
uint32 curRep = player->GetReputationMgr().GetReputation(repFaction);
if(curRep < repValue)
{
FactionEntry const *factionEntry = sFactionStore.LookupEntry(repFaction);
player->SetFactionReputation(factionEntry,repValue);
}
if(FactionEntry const *factionEntry = sFactionStore.LookupEntry(repFaction))
player->GetReputationMgr().SetReputation(factionEntry,repValue);
}
// If the quest requires money