mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 21:17:16 +00:00
[Rule] Add Task System Rule ExpRewardsIgnoreLevelBasedEXPMods (#3112)
* [Rule] Add Task System Rule ExpRewardsIgnoreLevelBasedEXPMods * description
This commit is contained in:
1 parent
0be7ead1d1
commit
0caee9026a
2 files changed
+2
-1
No files matched your search
@@ -1111,7 +1111,7 @@ void ClientTaskState::RewardTask(Client *c, const TaskInformation *ti, ClientTas
|
||||
if (pos_reward > 100 && pos_reward < 25700) {
|
||||
uint8 max_level = pos_reward / 100;
|
||||
uint8 exp_percent = pos_reward - (max_level * 100);
|
||||
c->AddLevelBasedExp(exp_percent, max_level);
|
||||
c->AddLevelBasedExp(exp_percent, max_level, RuleB(TaskSystem, ExpRewardsIgnoreLevelBasedEXPMods));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user