diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/MythologicalCreatureTracker.kt | 14 |
1 files changed, 13 insertions, 1 deletions
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,9 +57,13 @@ object MythologicalCreatureTracker { override fun reset() { count.clear() + mobsSinceLastInquisitor = 0 } @Expose + var mobsSinceLastInquisitor: Int = 0 + + @Expose var count: MutableMap<MythologicalCreatureType, Int> = 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 |