diff --git a/src/game/ReputationMgr.cpp b/src/game/ReputationMgr.cpp index 5dcf60cca..872bc06f2 100644 --- a/src/game/ReputationMgr.cpp +++ b/src/game/ReputationMgr.cpp @@ -79,46 +79,6 @@ int32 ReputationMgr::GetReputation(FactionEntry const* factionEntry) const return 0; } -/* -FactionState const* ReputationMgr::GetState( FactionTemplateEntry const* factionTemplateEntry ) const -{ - if(factionTemplateEntry->faction) - if (FactionEntry const* raw_faction = sFactionStore.LookupEntry(factionTemplateEntry->faction)) - if (raw_faction->reputationListID >=0 ) - return GetState(raw_faction); - - return NULL; -} -*/ -/* -ReputationRank ReputationMgr::GetRank(uint32 faction) const -{ - FactionEntry const*factionEntry = sFactionStore.LookupEntry(faction); - if(!factionEntry) - return MIN_REPUTATION_RANK; - - return GetRank(factionEntry); -} -*/ -/* -ReputationRank const* ReputationMgr::GetRankIfAny(FactionTemplateEntry const* factionTemplateEntry,ReputationRank& rankHolder) const -{ - if (!factionTemplateEntry->faction) - return NULL; - - if (FactionEntry const* raw_faction = sFactionStore.LookupEntry(factionTemplateEntry->faction)) - { - if (raw_faction->reputationListID >=0 ) - { - rankHolder = GetRank(raw_faction); - return &rankHolder; - } - } - - return NULL; -} -*/ - ReputationRank ReputationMgr::GetRank(FactionEntry const* factionEntry) const { int32 reputation = GetReputation(factionEntry); @@ -305,37 +265,6 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in return false; } -/* -bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, int32 standing) -{ - FactionStateList::iterator itr = m_factions.find(factionEntry->reputationListID); - if (itr != m_factions.end()) - { - if (standing > Reputation_Cap) - standing = Reputation_Cap; - else - if (standing < Reputation_Bottom) - standing = Reputation_Bottom; - - int32 BaseRep = GetBaseReputation(factionEntry); - itr->second.Standing = standing - BaseRep; - itr->second.Changed = true; - - if(itr->second.SetFactionVisible()) - SendFactionVisible(&itr->second); - - if(ReputationToRank(standing) <= REP_HOSTILE) - itr->second.SetAtWar(true); - - SendState(&(itr->second)); - m_player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GAIN_REPUTATION,factionEntry->ID); - m_player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GAIN_EXALTED_REPUTATION,factionEntry->ID); - return true; - } - return false; -} -*/ - bool ReputationMgr::ModifyReputation(FactionEntry const* factionEntry, int32 standing) { SimpleFactionsList const* flist = GetFactionTeamList(factionEntry->ID); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2177313d1..46cde255f 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7541" + #define REVISION_NR "7542" #endif // __REVISION_NR_H__