From 1677e6e5ec27fb430ef73d62f1499eec51dc29e4 Mon Sep 17 00:00:00 2001 From: Rat Date: Tue, 4 May 2010 12:52:10 +0200 Subject: elites in instances should have a 2.75x base xp bonus instead of the regular 2x world bonus --HG-- branch : trunk --- src/game/Formulas.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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)); } -- cgit v1.2.3