*make the Rate.Reputation.Gain config option apply to reputation gains inside battlegrounds as well By BudIcePenguin

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-29 21:27:28 -05:00
parent cc022341ac
commit 38c22f4190
2 changed files with 5 additions and 1 deletions

View File

@@ -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;