summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/combat
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-03-07 08:46:22 +1100
committerGitHub <noreply@github.com>2024-03-06 22:46:22 +0100
commit6da1f6daeea8383de0f363fcb007cc9df15afd45 (patch)
tree693a104b1dfaec685d9219bb96e4e2ab5d9fcf0e /src/main/java/at/hannibal2/skyhanni/features/combat
parentde0f0e888a4c0767c8e8ca911113482a3b1f9d5c (diff)
downloadskyhanni-6da1f6daeea8383de0f363fcb007cc9df15afd45.tar.gz
skyhanni-6da1f6daeea8383de0f363fcb007cc9df15afd45.tar.bz2
skyhanni-6da1f6daeea8383de0f363fcb007cc9df15afd45.zip
Backend: Reformat code in all files in src directory (#1109)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/combat')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt
index c4eb1f074..dd226d800 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt
@@ -182,7 +182,7 @@ object GhostCounter {
val bestiary = if (config.showMax) {
when (nextLevel) {
26 -> bestiaryFormatting.maxed.replace("%currentKill%", currentKill.addSeparators())
- in 1 .. 25 -> {
+ in 1..25 -> {
val sum = bestiaryData.filterKeys { it <= nextLevel - 1 }.values.sum()
val cKill = sum + currentKill
@@ -195,7 +195,7 @@ object GhostCounter {
} else {
when (nextLevel) {
26 -> bestiaryFormatting.maxed
- in 1 .. 25 -> bestiaryFormatting.progress
+ in 1..25 -> bestiaryFormatting.progress
else -> bestiaryFormatting.openMenu
}
}
@@ -301,7 +301,7 @@ object GhostCounter {
val res = current.formatNumber().toString()
gain = (res.toLong() - lastXp.toLong()).toDouble().roundToInt()
num = (gain.toDouble() / gained)
- if (gained in 150.0 .. 450.0 && lastXp != "0" && num >= 0) {
+ if (gained in 150.0..450.0 && lastXp != "0" && num >= 0) {
KILLS.add(num)
KILLS.add(num, true)
Option.GHOSTSINCESORROW.add(num)