Fix Turtle 1.18.1 rested XP percentage

This commit is contained in:
Dusk-92
2026-08-26 15:23:19 +02:00
parent a9470d1f51
commit f75201172f
+4 -2
View File
@@ -40,8 +40,10 @@ module.enable = function(self)
local text
if rest > 0 then
-- Preserve the existing Turtle/Vanilla rested display calculation.
local restPct = math.floor(math.min(rest / (max * 1.5) * 100, 100))
-- Turtle WoW 1.18.1 reduced rested creature XP from +100% to +50%.
-- The effective GetXPExhaustion full-rest threshold is about 112.5% of
-- the current level XP, so normalize that pool to a 0-100% display.
local restPct = math.floor(math.min(rest / (max * 1.125) * 100, 100))
text = "|cffffffff" .. xpPct .. "%|r |cffaaaaaa(|cffa78aca" .. restPct .. "%|cffaaaaaa)|r"
else
text = "|cffffffff" .. xpPct .. "%|r"