From 38c22f419036c35076e6b725053eaedea1630681 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 29 May 2009 21:27:28 -0500 Subject: *make the Rate.Reputation.Gain config option apply to reputation gains inside battlegrounds as well By BudIcePenguin --HG-- branch : trunk --- src/game/ReputationMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/ReputationMgr.cpp') diff --git a/src/game/ReputationMgr.cpp b/src/game/ReputationMgr.cpp index 62b9504daff..5b42e616ac7 100644 --- a/src/game/ReputationMgr.cpp +++ b/src/game/ReputationMgr.cpp @@ -20,6 +20,7 @@ #include "DBCStores.h" #include "Player.h" #include "WorldPacket.h" +#include "World.h" const int32 ReputationMgr::PointsInRank[MAX_REPUTATION_RANK] = {36000, 3000, 3000, 3000, 6000, 12000, 21000, 1000}; @@ -252,7 +253,10 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in int32 BaseRep = GetBaseReputation(factionEntry); if(incremental) + { + standing *= sWorld.getRate(RATE_REPUTATION_GAIN); //multiply gain by config rate standing += itr->second.Standing + BaseRep; + } if (standing > Reputation_Cap) standing = Reputation_Cap; -- cgit v1.2.3