aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/dungeon
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-09-26 19:40:07 -0400
committerGitHub <noreply@github.com>2024-09-27 09:40:07 +1000
commit65dde77f6d604faf4a87ddbff2477ee7629bc07f (patch)
tree732546fba8f09d20c8f789ce4c2c6b472ae6bbd2 /src/main/java/at/hannibal2/skyhanni/features/dungeon
parent092a29dd8b13c2b04b0b7c259446ab697201dd5e (diff)
downloadskyhanni-65dde77f6d604faf4a87ddbff2477ee7629bc07f.tar.gz
skyhanni-65dde77f6d604faf4a87ddbff2477ee7629bc07f.tar.bz2
skyhanni-65dde77f6d604faf4a87ddbff2477ee7629bc07f.zip
Backend: Detekt Fixes Part 1 (#2603)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt11
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonRankTabListColor.kt2
2 files changed, 8 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt
index a49369d83..1a566c225 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt
@@ -16,7 +16,7 @@ object DungeonChatFilter {
private val config get() = SkyHanniMod.feature.chat
- /// <editor-fold desc="Patterns, Messages, and Maps">
+ // <editor-fold desc="Patterns, Messages, and Maps">
// TODO USE SH-REPO
private val endPatterns = listOf(
"(.*) §r§eunlocked §r§d(.*) Essence §r§8x(.*)§r§e!".toPattern(),
@@ -140,9 +140,12 @@ object DungeonChatFilter {
private val pickupMessages = listOf(
"§fYou found a §r§dWither Essence§r§f! Everyone gains an extra essence!"
)
+
+ /**
+ * REGEX-TEST: §a[Berserk] §r§fMelee Damage §r§c48%§r§f -> §r§a88%
+ * REGEX-TEST: §a[Berserk] §r§fWalk Speed §r§c38§r§f -> §r§a68
+ */
private val startPatterns = listOf(
- //§a[Berserk] §r§fMelee Damage §r§c48%§r§f -> §r§a88%
- //§a[Berserk] §r§fWalk Speed §r§c38§r§f -> §r§a68
"§a(.*) §r§f(.*) §r§c(.*)§r§f -> §r§a(.*)".toPattern()
)
private val startMessages = listOf(
@@ -188,7 +191,7 @@ object DungeonChatFilter {
private val messagesEndsWithMap: Map<MessageTypes, List<String>> = mapOf(
MessageTypes.END to endMessagesEndWith,
)
- /// </editor-fold>
+ // </editor-fold>
@SubscribeEvent
fun onChat(event: LorenzChatEvent) {
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonRankTabListColor.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonRankTabListColor.kt
index 80a60ba4b..3968a3d18 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonRankTabListColor.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonRankTabListColor.kt
@@ -34,7 +34,7 @@ object DungeonRankTabListColor {
val sbLevel = group("sbLevel")
val rank = groupOrNull("rank") ?: ""
val playerName = group("playerName")
- //val symbols = group("symbols")
+ // val symbols = group("symbols")
val className = group("className")
val classLevel = group("classLevel")