diff options
author | evhan3584 <elabrie26@gmail.com> | 2024-06-30 05:14:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-30 11:14:12 +0200 |
commit | 87814c6454555f48494265f41d4767dcc8483bb2 (patch) | |
tree | e03430d1bf3b8f0da27c69b576db8b84177d056b /src | |
parent | c0067955cdf8c4fceb0bf9564c7b0427e4b7b992 (diff) | |
download | skyhanni-87814c6454555f48494265f41d4767dcc8483bb2.tar.gz skyhanni-87814c6454555f48494265f41d4767dcc8483bb2.tar.bz2 skyhanni-87814c6454555f48494265f41d4767dcc8483bb2.zip |
Fix: Skill Progress ETA (#2163)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt | 5 |
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 |