sabrehaven talon boost only 10% exp for 1 day despite stamina

This commit is contained in:
ErikasKontenis 2020-05-07 15:15:28 +03:00
parent 2337b2535f
commit 83dff737cb

View File

@ -183,10 +183,12 @@ function Player:onGainExperience(source, exp, rawExp)
if configManager.getBoolean(configKeys.STAMINA_SYSTEM) then
useStamina(self)
if self:getStorageValue(17582) > os.time() then
exp = exp * 1.1
end
local staminaMinutes = self:getStamina()
if staminaMinutes > 2400 and self:getStorageValue(17582) > os.time() then
exp = exp * 1.5
elseif staminaMinutes <= 840 then
if staminaMinutes <= 840 then
exp = exp * 0.5
end
end