From 34c3331d3bc6df500c69c6bb43259db69877cf4d Mon Sep 17 00:00:00 2001 From: Clicks <58398364+CuzImClicks@users.noreply.github.com> Date: Wed, 3 Apr 2024 19:30:10 +0200 Subject: Mobs since last Inquisitor (#1346) --- .../features/event/diana/MythologicalCreatureTracker.kt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/MythologicalCreatureTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/MythologicalCreatureTracker.kt index bfb849ff1..79c447662 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/MythologicalCreatureTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/MythologicalCreatureTracker.kt @@ -57,8 +57,12 @@ object MythologicalCreatureTracker { override fun reset() { count.clear() + mobsSinceLastInquisitor = 0 } + @Expose + var mobsSinceLastInquisitor: Int = 0 + @Expose var count: MutableMap = mutableMapOf() } @@ -78,7 +82,14 @@ object MythologicalCreatureTracker { if (creatureType.pattern.matches(event.message)) { BurrowAPI.lastBurrowRelatedChatMessage = SimpleTimeMark.now() tracker.modify { it.count.addOrPut(creatureType, 1) } - + when (creatureType) { + MythologicalCreatureType.MINOS_INQUISITOR -> { + tracker.modify { it.mobsSinceLastInquisitor = 0 } + } + else -> { + tracker.modify { it.mobsSinceLastInquisitor += 1 } + } + } if (config.hideChat) { event.blockedReason = "mythological_creature_dug" } @@ -99,6 +110,7 @@ object MythologicalCreatureTracker { addAsSingletonList(" §7- §e${amount.addSeparators()} ${creatureType.displayName}$percentageSuffix") } addAsSingletonList(" §7- §e${total.addSeparators()} §7Total Mythological Creatures") + addAsSingletonList(" §7- §e${data.mobsSinceLastInquisitor.addSeparators()} §7Mobs since last Minos Inquisitor") } @SubscribeEvent -- cgit