diff options
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 |