Core/Player: Introduce separate level caps for each expansion

Port From (https://github.com/TrinityCore/TrinityCore/commit/b7353fb92795801c2c2a52035026e9e0059fa83d)
This commit is contained in:
hondacrx
2022-02-28 13:25:22 -05:00
parent 4be35daf6f
commit c82e78d4cb
3 changed files with 14 additions and 9 deletions
+2 -2
View File
@@ -1053,7 +1053,7 @@ namespace Game.Entities
uint XP = GetQuestXPReward(quest);
int moneyRew = 0;
if (GetLevel() < WorldConfig.GetIntValue(WorldCfg.MaxPlayerLevel))
if (!IsMaxLevel())
GiveXP(XP, null);
else
moneyRew = (int)(quest.GetRewMoneyMaxLevel() * WorldConfig.GetFloatValue(WorldCfg.RateDropMoney));
@@ -2725,7 +2725,7 @@ namespace Game.Entities
uint moneyReward;
if (GetLevel() < WorldConfig.GetIntValue(WorldCfg.MaxPlayerLevel))
if (!IsMaxLevel())
{
moneyReward = GetQuestMoneyReward(quest);
}