From 87814c6454555f48494265f41d4767dcc8483bb2 Mon Sep 17 00:00:00 2001 From: evhan3584 Date: Sun, 30 Jun 2024 05:14:12 -0400 Subject: Fix: Skill Progress ETA (#2163) --- .../at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt index 06bee0447..2e033b7e4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt @@ -149,7 +149,7 @@ object SkillProgress { allDisplay = formatAllDisplay(drawAllDisplay()) etaDisplay = drawETADisplay() - if (event.repeatSeconds(2)) { + if (event.repeatSeconds(1)) { update() updateSkillInfo() } @@ -503,8 +503,7 @@ object SkillProgress { xpInfo.xpGainQueue.removeLast() } - var totalGain = 0f - for (f in xpInfo.xpGainQueue) totalGain += f + val totalGain = xpInfo.xpGainQueue.sum() xpInfo.xpGainHour = totalGain * (60 * 60) / xpInfo.xpGainQueue.size xpInfo.isActive = true -- cgit