From 4e23db746f35965b84f8dd5be19b9883c67d8add Mon Sep 17 00:00:00 2001 From: MTOnline69 <97001154+MTOnline69@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:21:53 +0100 Subject: Feature: Broodmother alerts/messages and damage indicator support (#2325) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/gui') diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt index efe7c953d..9f3c009e5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt @@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.features.gui.customscoreboard import at.hannibal2.skyhanni.data.HypixelData import at.hannibal2.skyhanni.data.IslandType +import at.hannibal2.skyhanni.features.combat.SpidersDenAPI.isAtTopOfNest import at.hannibal2.skyhanni.features.dungeon.DungeonAPI import at.hannibal2.skyhanni.features.gui.customscoreboard.CustomScoreboard.eventsConfig import at.hannibal2.skyhanni.features.gui.customscoreboard.ScoreboardEvent.VOTING @@ -121,7 +122,7 @@ enum class ScoreboardEvent( ), BROODMOTHER( ::getBroodmotherLines, - ::getBroodmotherShowWhen, + ::isAtTopOfNest, "§4Broodmother§7: §eDormant", ), MINING_EVENTS( @@ -441,8 +442,6 @@ private fun getSoonEventShowWhen(): Boolean = private fun getBroodmotherLines(): List = listOf(getSbLines().first { SbPattern.broodmotherPattern.matches(it) }) -private fun getBroodmotherShowWhen(): Boolean = getSbLines().any { SbPattern.broodmotherPattern.matches(it) } - private fun getMiningEventsLines() = buildList { // Wind if (getSbLines().any { SbPattern.windCompassPattern.matches(it) } -- cgit