aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorevhan3584 <elabrie26@gmail.com>2024-06-30 05:14:12 -0400
committerGitHub <noreply@github.com>2024-06-30 11:14:12 +0200
commit87814c6454555f48494265f41d4767dcc8483bb2 (patch)
treee03430d1bf3b8f0da27c69b576db8b84177d056b /src/main/java/at/hannibal2/skyhanni
parentc0067955cdf8c4fceb0bf9564c7b0427e4b7b992 (diff)
downloadskyhanni-87814c6454555f48494265f41d4767dcc8483bb2.tar.gz
skyhanni-87814c6454555f48494265f41d4767dcc8483bb2.tar.bz2
skyhanni-87814c6454555f48494265f41d4767dcc8483bb2.zip
Fix: Skill Progress ETA (#2163)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt5
1 files changed, 2 insertions, 3 deletions
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