Skip to content

Commit

Permalink
fix: rate experience stages (opentibiabr#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
beats-dh authored Feb 12, 2023
1 parent abdf22f commit 70cf05b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions data/events/scripts/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -725,14 +725,8 @@ function Player:onGainExperience(target, exp, rawExp)
end

local baseRate = self:getFinalBaseRateExperience()
local finalExperience
if configManager.getBoolean(configKeys.RATE_USE_STAGES) then
finalExperience = (exp * baseRate + (exp * (storeXpBoostAmount/100))) * staminaBoost
else
finalExperience = (exp + (exp * (storeXpBoostAmount/100))) * staminaBoost
end

return math.max(finalExperience)
return (exp * baseRate + (exp * (storeXpBoostAmount/100))) * staminaBoost
end

function Player:onLoseExperience(exp)
Expand Down

0 comments on commit 70cf05b

Please sign in to comment.