summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorHiZe_ <superhize@hotmail.com>2023-07-19 19:58:17 +0200
committerGitHub <noreply@github.com>2023-07-19 19:58:17 +0200
commitf2c01a6c5a13c35286c1a738a0c676762bf17d92 (patch)
tree44ad09afdad5744ab2c9a7475dde42601babb6a7 /src/main/java/at/hannibal2/skyhanni/features
parenta4154d1c998b2af1fc8690016f3df03fa94c2e5b (diff)
downloadskyhanni-f2c01a6c5a13c35286c1a738a0c676762bf17d92.tar.gz
skyhanni-f2c01a6c5a13c35286c1a738a0c676762bf17d92.tar.bz2
skyhanni-f2c01a6c5a13c35286c1a738a0c676762bf17d92.zip
Merge pull request #308
* Added bloodfiend to damage indicator
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/damageindicator/BossType.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt10
2 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/BossType.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/BossType.kt
index d4ccee634..9c2e4c7d9 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/BossType.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/BossType.kt
@@ -77,6 +77,12 @@ enum class BossType(val fullName: String, val bossTypeToggle: Int, val shortName
// The Rift
LEECH_SUPREME("§cLeech Supreme", 22),
+ SLAYER_BLOODFIEND_1("§aRiftstalker Bloodfiend 1", 23, "§aBlood 1", showDeathTime = true),
+ SLAYER_BLOODFIEND_2("§6Riftstalker Bloodfiend 2", 23, "§6Blood 2", showDeathTime = true),
+ SLAYER_BLOODFIEND_3("§cRiftstalker Bloodfiend 3", 23, "§cBlood 3", showDeathTime = true),
+ SLAYER_BLOODFIEND_4("§4Riftstalker Bloodfiend 4", 23, "§4Blood 4", showDeathTime = true),
+ SLAYER_BLOODFIEND_5("§5Riftstalker Bloodfiend 5", 23, "§5Blood 5", showDeathTime = true),
+
//TODO arachne
//TODO corelone
diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt
index b8c20ddab..57be6beeb 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt
@@ -203,6 +203,16 @@ class MobFinder {
if (entity.name == "Leech Supreme") {
return EntityResult(bossType = BossType.LEECH_SUPREME)
}
+
+ if (entity.name == "Bloodfiend ") {
+ when {
+ entity.hasMaxHealth(625) -> return EntityResult(bossType = BossType.SLAYER_BLOODFIEND_1)
+ entity.hasMaxHealth(1_100) -> return EntityResult(bossType = BossType.SLAYER_BLOODFIEND_2)
+ entity.hasMaxHealth(1_800) -> return EntityResult(bossType = BossType.SLAYER_BLOODFIEND_3)
+ entity.hasMaxHealth(2_400) -> return EntityResult(bossType = BossType.SLAYER_BLOODFIEND_4)
+ entity.hasMaxHealth(3_000) -> return EntityResult(bossType = BossType.SLAYER_BLOODFIEND_5)
+ }
+ }
}
} else {
if (entity is EntityBlaze) {