Jump to content

[fix][5765] Exp For Higher Level Mobs


Guest domingo
 Share

Recommended Posts

What bug does the patch fix? What features does the patch add?

Experience gained for higher level mobs should be capped max to player level + 4 -> thus 'con-red' mobs should give same experience as 'con-orange' mobs.

Source: WoWWiki:Formulas:Mob_XP, section Higher Level Mobs

For which SubVersion revision was the patch created?

5489

Is there a thread in the bug report section? If yes, please add a link to the thread.

no

Who has been writing this patch? Please include either forum user names or email addresses.

domingo

Index: Formulas.h
===================================================================
--- Formulas.h        (revision 5489)
+++ Formulas.h        (working copy)
@@ -73,7 +73,12 @@
                {
                        const uint32 nBaseExp = content == CONTENT_1_60 ? 45 : 235;
                        if( mob_level >= pl_level )
-                                return ((pl_level*5 + nBaseExp) * (20 + mob_level - pl_level)/10 + 1)/2;
+                        {
+                                uint32 nLevelDiff = mob_level - pl_level;
+                                if (nLevelDiff > 4)
+                                        nLevelDiff = 4;
+                                return ((pl_level*5 + nBaseExp) * (20 + nLevelDiff)/10 + 1)/2;
+                        }
                        else
                        {
                                uint32 gray_level = GetGrayLevel(pl_level);

Link to comment
Share on other sites

  • 1 month later...
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use