aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-17 10:33:21 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-17 10:33:21 +0200
commit454c1e59167851b40b9d7a6fccd75d7bedcf194c (patch)
tree90ae670d9e5c507f86cf21e70759f15d8996dd2c /src
parent98788ec56847cdfca2a1e5f3676844a9ac25acb8 (diff)
downloadskyhanni-454c1e59167851b40b9d7a6fccd75d7bedcf194c.tar.gz
skyhanni-454c1e59167851b40b9d7a6fccd75d7bedcf194c.tar.bz2
skyhanni-454c1e59167851b40b9d7a6fccd75d7bedcf194c.zip
Count sea emperor and rider of the deep twice against sea creature cap.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt
index 2935b77ab..c97ca4ed8 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt
@@ -64,7 +64,12 @@ class FishingTimer {
}
private fun countMobs() = EntityUtils.getEntities<EntityArmorStand>()
- .count { entity -> SeaCreatureManager.allFishingMobNames.any { entity.name.contains(it) } }
+ .map { entity ->
+ val name = entity.name
+ if (SeaCreatureManager.allFishingMobNames.any { name.contains(it) }) {
+ if (name == "Sea Emperor" || name == "Rider of the Deep") 2 else 1
+ } else 0
+ }.sum()
private fun isRightLocation(): Boolean {
if (config.barnTimerCrystalHollows && IslandType.CRYSTAL_HOLLOWS.isInIsland()) {