From 45a4478cfd914ab78b8b99fa5eee47548119d072 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sat, 6 Apr 2024 01:21:09 +0200 Subject: Fix: Bingo Card Row (#1370) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni') 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()) -- cgit