aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-04-06 01:21:09 +0200
committerGitHub <noreply@github.com>2024-04-06 01:21:09 +0200
commit45a4478cfd914ab78b8b99fa5eee47548119d072 (patch)
tree821d06d70986b9832665e25ce090e25328c6eac1
parent202609cde2f74b7e6b789e2e5caa781a49ca7cdc (diff)
downloadskyhanni-45a4478cfd914ab78b8b99fa5eee47548119d072.tar.gz
skyhanni-45a4478cfd914ab78b8b99fa5eee47548119d072.tar.bz2
skyhanni-45a4478cfd914ab78b8b99fa5eee47548119d072.zip
Fix: Bingo Card Row (#1370)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt
index 83078c989..51a787377 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt
@@ -34,6 +34,10 @@ class BingoCardTips {
"reward.contribution",
"§.§.§7Contribution Rewards.*"
)
+ private val rowNamePattern by patternGroup.pattern(
+ "row.name",
+ "§o§eRow #.*"
+ )
@SubscribeEvent
fun onTooltip(event: LorenzToolTipEvent) {
@@ -44,7 +48,10 @@ class BingoCardTips {
val goal = BingoAPI.bingoGoals[slot.slotNumber] ?: return
val toolTip = event.toolTip
+ // When hovering over a row
+ if (rowNamePattern.matches(toolTip.firstOrNull())) return
val bingoTip = goal.getData() ?: return
+
val communityGoal = goal.type == GoalType.COMMUNITY
val difficulty = Difficulty.valueOf(bingoTip.difficulty.uppercase())