From 54ae1ef2eb2954facb76fc151aff34c8c1efd6a0 Mon Sep 17 00:00:00 2001 From: Carlos Pessoa Date: Mon, 1 Jan 2024 23:55:53 -0300 Subject: [PATCH 1/2] fix: adding the correct value in minutes to green stamina --- data/events/scripts/player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/events/scripts/player.lua b/data/events/scripts/player.lua index 0a719401ed0..a11be319069 100644 --- a/data/events/scripts/player.lua +++ b/data/events/scripts/player.lua @@ -639,7 +639,7 @@ function Player:onChangeZone(zone) if stamina < 2520 then if not event then local delay = configManager.getNumber(configKeys.STAMINA_ORANGE_DELAY) - if stamina > 2400 and stamina <= 2520 then + if stamina > 2351 and stamina <= 2520 then delay = configManager.getNumber(configKeys.STAMINA_GREEN_DELAY) end From 8bfff7088442a77b1905b66c9e30597b84daa119 Mon Sep 17 00:00:00 2001 From: Luan Santos Date: Thu, 4 Jan 2024 09:24:29 -0800 Subject: [PATCH 2/2] Update data/events/scripts/player.lua --- data/events/scripts/player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/events/scripts/player.lua b/data/events/scripts/player.lua index fa67db083ec..35e0bb17e7f 100644 --- a/data/events/scripts/player.lua +++ b/data/events/scripts/player.lua @@ -639,7 +639,7 @@ function Player:onChangeZone(zone) if stamina < 2520 then if not event then local delay = configManager.getNumber(configKeys.STAMINA_ORANGE_DELAY) - if stamina > 2351 and stamina <= 2520 then + if stamina > 2340 and stamina <= 2520 then delay = configManager.getNumber(configKeys.STAMINA_GREEN_DELAY) end