Core/Player: Introduce separate level caps for each expansion

This commit is contained in:
Max Drosdo.www authored and Ovahlord committed 2020-07-13 20:35:57 +02:00
1 parent 56c3d0fa11
commit cb4e7821e3
6 files changed
+29 -20

No files matched your search

+1 -1
View File
@@ -281,7 +281,7 @@ int32 Quest::GetRewOrReqMoney(Player const* player) const
return _rewardMoney;
// RewardMoney: the positive amount
if (!player || player->getLevel() < sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL))
if (!player || !player->IsMaxLevel())
return int32(_rewardMoney * sWorld->getRate(RATE_MONEY_QUEST));
else // At level cap, the money reward is the maximum amount between normal and bonus money reward
return std::max(int32(GetRewMoneyMaxLevel()), int32(_rewardMoney * sWorld->getRate(RATE_MONEY_QUEST)));