Core/Player: Introduce separate level caps for each expansion
This commit is contained in:
1 parent
56c3d0fa11
commit
cb4e7821e3
6 files changed
+29
-20
No files matched your search
@@ -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)));
|
||||
|
||||
Reference in new issue
Block a user