From 83dff737cbf413d65f861f1fbafdb8f863fd45aa Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Thu, 7 May 2020 15:15:28 +0300 Subject: [PATCH] sabrehaven talon boost only 10% exp for 1 day despite stamina --- data/events/scripts/player.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data/events/scripts/player.lua b/data/events/scripts/player.lua index 0cf8a29..5f51c2d 100644 --- a/data/events/scripts/player.lua +++ b/data/events/scripts/player.lua @@ -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