mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-24 08:36:04 +00:00
c30dfae7a6
The data frame now subscribes to UPDATE_EXHAUSTION and stores a sliding 5-minute window of (time, exhaustion) samples. The XP tooltip uses the first/last samples in the window to compute rest gain per hour, and projects time to reach UnitXPMax * 1.5 at the current rate. Useful for Turtle WoW's tent mechanic — when you stand under a tent you accumulate rested XP at an accelerated rate, and now you can see how long until you cap. Samples reset on PLAYER_ENTERING_WORLD (zone change can change the gain rate) and PLAYER_LEVEL_UP (Blizzard rescales exhaustion proportionally on level-up so prior samples no longer describe the same gain curve). The rate/time lines only appear when there are at least 2 samples in the window and the gain is positive — so they stay hidden when not actively gaining rested XP.