diff options
author | martimavocado <39881008+martimavocado@users.noreply.github.com> | 2024-03-21 15:22:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 16:22:58 +0100 |
commit | 5af63dc928e9dbeabfce4b51548b3f7ac210d056 (patch) | |
tree | 187e617a1ad4323356b0739f175bc5fc01817785 | |
parent | 7ba240569ea7092b9b7438427bb71e922e1de1d2 (diff) | |
download | skyhanni-5af63dc928e9dbeabfce4b51548b3f7ac210d056.tar.gz skyhanni-5af63dc928e9dbeabfce4b51548b3f7ac210d056.tar.bz2 skyhanni-5af63dc928e9dbeabfce4b51548b3f7ac210d056.zip |
Fix: DungeonFinderFeatures not detecting selected class, readd colors to class level (#1219)
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt index 20dde4bcf..867999581 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt @@ -109,7 +109,7 @@ class DungeonFinderFeatures { ) private val detectDungeonClassPattern by patternGroup.pattern( "detect.dungeon.class", - "(View and select a dungeon class.)" + "§7View and select a dungeon class." ) private val allowedSlots = (10..34).filter { it !in listOf(17, 18, 26, 27) } @@ -146,7 +146,6 @@ class DungeonFinderFeatures { val name = stack.displayName.removeColor() map[slot] = if (anyFloorPattern.matches(name)) { "A" - } else if (entranceFloorPattern.matches(name)) { "E" } else if (floorPattern.matches(name)) { @@ -343,12 +342,17 @@ class DungeonFinderFeatures { companion object { fun getColor(level: Int): String = when { - level >= 30 -> "§a" + level >= 50 -> "§c§l" + level >= 45 -> "§c" + level >= 40 -> "§6" + level >= 35 -> "§d" + level >= 30 -> "§9" level >= 25 -> "§b" - level >= 20 -> "§e" - level >= 15 -> "§6" - level >= 10 -> "§c" - else -> "§4" + level >= 20 -> "§2" + level >= 15 -> "§a" + level >= 10 -> "§e" + level >= 5 -> "§f" + else -> "§7" } } |