From 094facaa29264f78aad2096ce386411ade8e8e6a Mon Sep 17 00:00:00 2001 From: HiZe_ Date: Wed, 13 Sep 2023 22:49:09 +0200 Subject: Fix: GhostCounter (#472) Co-authored-by: superhize --- .../at/hannibal2/skyhanni/features/misc/ghostcounter/GhostFormatting.kt | 2 +- .../java/at/hannibal2/skyhanni/features/misc/ghostcounter/GhostUtil.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc') 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 -- cgit