diff options
author | HiZe_ <superhize@hotmail.com> | 2023-09-13 22:49:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 22:49:09 +0200 |
commit | 094facaa29264f78aad2096ce386411ade8e8e6a (patch) | |
tree | 29036e9e72f336d90b734bbb0d5707a79c9814d4 /src | |
parent | d0521318cc1ef03eaca3c9242c2aeff901806d9e (diff) | |
download | skyhanni-094facaa29264f78aad2096ce386411ade8e8e6a.tar.gz skyhanni-094facaa29264f78aad2096ce386411ade8e8e6a.tar.bz2 skyhanni-094facaa29264f78aad2096ce386411ade8e8e6a.zip |
Fix: GhostCounter (#472)
Co-authored-by: superhize <superhize@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostFormatting.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostUtil.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostFormatting.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostFormatting.kt index 304be561d..c2f81491a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostFormatting.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostFormatting.kt @@ -160,7 +160,7 @@ object GhostFormatting { base = " &6Bestiary %currentLevel%->%nextLevel%: &b%value%" openMenu = "§cOpen Bestiary Menu !" maxed = "%currentKill% (&c&lMaxed!)" - showMax_progress = "%currentKill%/3M (%percentNumber%%)" + showMax_progress = "%currentKill%/250k (%percentNumber%%)" progress = "%currentKill%/%killNeeded%" } with(killHourFormatting) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostUtil.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostUtil.kt index b04ce9287..bfcc73cec 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostUtil.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostUtil.kt @@ -123,6 +123,6 @@ object GhostUtil { } private fun percent(number: Double): String { - return "${((number / 250_000) * 100).roundToPrecision(4)}" + return 100.0.coerceAtMost(((number / 250_000) * 100).roundToPrecision(4)).toString() } }
\ No newline at end of file |