[Rule] Add Task System Rule ExpRewardsIgnoreLevelBasedEXPMods (#3112)

* [Rule] Add Task System Rule ExpRewardsIgnoreLevelBasedEXPMods

* description
This commit is contained in:
Aeadoin authored and GitHub committed 2023-03-17 19:15:02 -04:00
1 parent 0be7ead1d1
commit 0caee9026a
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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));
}
}