diff options
author | Clicks <58398364+CuzImClicks@users.noreply.github.com> | 2024-04-03 19:30:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 19:30:10 +0200 |
commit | 34c3331d3bc6df500c69c6bb43259db69877cf4d (patch) | |
tree | 4cce909c4884000251615abef6905f8d066f69f9 /src/main/java | |
parent | 3154264c4b895f5dd8f84ddff12b6bff9a075400 (diff) | |
download | skyhanni-34c3331d3bc6df500c69c6bb43259db69877cf4d.tar.gz skyhanni-34c3331d3bc6df500c69c6bb43259db69877cf4d.tar.bz2 skyhanni-34c3331d3bc6df500c69c6bb43259db69877cf4d.zip |
Mobs since last Inquisitor (#1346)
Diffstat (limited to 'src/main/java')
-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 |