bradette19
Member
Hello, my stamina bonus exp isn't working.
Here my player.lua
Here my player.lua
Code:
-- Stamina modifier
if configManager.getBoolean(configKeys.STAMINA_SYSTEM) then
useStamina(self)
local staminaMinutes = self:getStamina()
if staminaMinutes > 2400 and self:isPremium() then
exp = exp * 1.5
elseif staminaMinutes <= 840 then
exp = exp * 0.5
end
end
if self:getStorageValue(1234) >= os.time() then
exp = exp * 2
end
if self:getVipDays() > 0 then
exp = exp * 1.25
end
return exp
end