diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-23 03:17:56 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-23 03:17:56 +0100 |
commit | 596ccd9af873ab49735816f00a1f50495c8b3106 (patch) | |
tree | fc7b2e776e313c165b838eb3a42812aad7db66db /src/main/java/at/hannibal2 | |
parent | 16cf25f52fcfe6666d6dea09cf67b2871cfb3e07 (diff) | |
download | skyhanni-596ccd9af873ab49735816f00a1f50495c8b3106.tar.gz skyhanni-596ccd9af873ab49735816f00a1f50495c8b3106.tar.bz2 skyhanni-596ccd9af873ab49735816f00a1f50495c8b3106.zip |
Fixed broken area mini boss highlight during derpy.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/combat/mobs/AreaMiniBossFeatures.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/AreaMiniBossFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/AreaMiniBossFeatures.kt index 97d891020..25851c0f8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/AreaMiniBossFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/AreaMiniBossFeatures.kt @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.utils.EntityUtils.hasMaxHealth import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.LorenzUtils +import at.hannibal2.skyhanni.utils.LorenzUtils.derpy import at.hannibal2.skyhanni.utils.LorenzVec import at.hannibal2.skyhanni.utils.RenderUtils.drawDynamicText import at.hannibal2.skyhanni.utils.TimeUtils @@ -32,7 +33,8 @@ class AreaMiniBossFeatures { if (!LorenzUtils.inSkyBlock) return val entity = event.entity - val maxHealth = event.maxHealth + // TODO remove workaround by change derpy logic either in hasMaxHealth or in EntityMaxHealthUpdateEvent + val maxHealth = (event.maxHealth.derpy() * if (LorenzUtils.isDerpy) 4.0 else 1.0).toInt() for (bossType in AreaMiniBossType.entries) { if (!bossType.clazz.isInstance(entity)) continue if (!entity.hasMaxHealth(bossType.health, false, maxHealth)) continue |