From 65dde77f6d604faf4a87ddbff2477ee7629bc07f Mon Sep 17 00:00:00 2001 From: David Cole <40234707+DavidArthurCole@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:40:07 -0400 Subject: Backend: Detekt Fixes Part 1 (#2603) --- .../hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt | 11 +++++++---- .../skyhanni/features/dungeon/DungeonRankTabListColor.kt | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon') 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 - /// + // // 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> = mapOf( MessageTypes.END to endMessagesEndWith, ) - /// + // @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") -- cgit