diff options
author | Rat <none@none> | 2010-05-04 12:52:10 +0200 |
---|---|---|
committer | Rat <none@none> | 2010-05-04 12:52:10 +0200 |
commit | 1677e6e5ec27fb430ef73d62f1499eec51dc29e4 (patch) | |
tree | 5264914a0503ab6810a45bf01197505175c5e944 | |
parent | 7d93b99c1f68faccc6b9a9c113687dfa1c07efe1 (diff) |
elites in instances should have a 2.75x base xp bonus instead of the regular 2x world bonus
--HG--
branch : trunk
-rw-r--r-- | src/game/Formulas.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/Formulas.h b/src/game/Formulas.h index 672f16663d1..fd1d8b16049 100644 --- a/src/game/Formulas.h +++ b/src/game/Formulas.h @@ -121,8 +121,14 @@ namespace Trinity if (xp_gain == 0) return 0; + //elites in instances have a 2.75x xp bonus instead of the regular 2x world bonus if (u->GetTypeId() == TYPEID_UNIT && ((Creature*)u)->isElite()) - xp_gain *= 2; + { + if(u->GetMap() && u->GetMap()->IsDungeon()) + xp_gain *= 2.75; + else + xp_gain *= 2; + } return uint32(xp_gain*sWorld.getRate(RATE_XP_KILL)); } |