diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/card/BingoCardTips.kt | 7 |
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()) |