aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorLuna <me@alexia.lol>2024-04-17 16:00:25 +0200
committerGitHub <noreply@github.com>2024-04-17 16:00:25 +0200
commit12c00abefbc7b558b163b730bf56d0b9ff27de06 (patch)
tree85523ed0ce130ee6656adccfe3d045de17eff07a /src/main/java
parentea6068e9fc01a771138554b83651a1ec77e07a2c (diff)
downloadskyhanni-12c00abefbc7b558b163b730bf56d0b9ff27de06.tar.gz
skyhanni-12c00abefbc7b558b163b730bf56d0b9ff27de06.tar.bz2
skyhanni-12c00abefbc7b558b163b730bf56d0b9ff27de06.zip
Improvement: Match Kat order in Vermin Tracker (#1459)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt
index cf6d0e3e1..0d349e9fb 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt
@@ -66,10 +66,10 @@ object VerminTracker {
var count: MutableMap<VerminType, Int> = mutableMapOf()
}
- enum class VerminType(val vermin: String, val pattern: Pattern) {
- SILVERFISH("§aSilverfish", silverfishPattern),
- SPIDER("§aSpiders", spiderPattern),
- FLY("§aFlies", flyPattern),
+ enum class VerminType(val order: Int, val vermin: String, val pattern: Pattern) {
+ FLY(1, "§aFlies", flyPattern),
+ SPIDER(2, "§aSpiders", spiderPattern),
+ SILVERFISH(3, "§aSilverfish", silverfishPattern),
}
@SubscribeEvent
@@ -152,7 +152,7 @@ object VerminTracker {
private fun drawDisplay(data: Data): List<List<Any>> = buildList {
addAsSingletonList("§7Vermin Tracker:")
- data.count.entries.sortedByDescending { it.value }.forEach { (vermin, amount) ->
+ data.count.entries.sortedBy { it.key.order }.forEach { (vermin, amount) ->
val verminName = vermin.vermin
addAsSingletonList(" §7- §e${amount.addSeparators()} $verminName")
}