aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 14:53:39 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 14:53:39 +0200
commit957c42dfbc17c9d812a14036cf532237578ff848 (patch)
treeed7c7c56a1a01d1f4bf9c574a5ab3d71d2da035c /src/main
parentcc59cccadf38cb263d5c035ac4f0b74d9adfe1ca (diff)
downloadskyhanni-957c42dfbc17c9d812a14036cf532237578ff848.tar.gz
skyhanni-957c42dfbc17c9d812a14036cf532237578ff848.tar.bz2
skyhanni-957c42dfbc17c9d812a14036cf532237578ff848.zip
Added Raindrake support to Damage Indicator.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/DamageIndicatorConfig.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/damageindicator/BossType.kt9
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt8
3 files changed, 18 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/DamageIndicatorConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/DamageIndicatorConfig.java
index d1f522a9e..a6b8e7db0 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/DamageIndicatorConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/DamageIndicatorConfig.java
@@ -56,11 +56,12 @@ public class DamageIndicatorConfig {
"Dummy",
"§bArachne",
"§bThe Rift Bosses",
- "§bRiftstalker Bloodfiend"
+ "§bRiftstalker Bloodfiend",
+ "§6Raindrake"
}
)
//TODO only show currently working and tested features
- public List<Integer> bossesToShow = new ArrayList<>(Arrays.asList(0, 1, 2, 5, 6, 7, 8, 9, 18, 19, 21, 22, 23));
+ public List<Integer> bossesToShow = new ArrayList<>(Arrays.asList(0, 1, 2, 5, 6, 7, 8, 9, 18, 19, 21, 22, 23, 24));
@Expose
@ConfigOption(name = "Hide Damage Splash", desc = "Hiding damage splashes near the damage indicator.")
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 4755d7dd1..c51dfb412 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/BossType.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/BossType.kt
@@ -1,6 +1,11 @@
package at.hannibal2.skyhanni.features.damageindicator
-enum class BossType(val fullName: String, val bossTypeToggle: Int, val shortName: String = fullName, val showDeathTime: Boolean = false) {
+enum class BossType(
+ val fullName: String,
+ val bossTypeToggle: Int,
+ val shortName: String = fullName,
+ val showDeathTime: Boolean = false
+) {
GENERIC_DUNGEON_BOSS("Generic Dungeon boss", 0),//TODO split into different bosses
//Nether Mini Bosses
@@ -83,6 +88,8 @@ enum class BossType(val fullName: String, val bossTypeToggle: Int, val shortName
LEECH_SUPREME("§cLeech Supreme", 22),
BACTE("§aBacte", 22),
+ WINTER_REINDRAKE("Raindrake", 24),//TODO fix totally
+
//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 4194c015e..5e660510e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt
@@ -1,5 +1,6 @@
package at.hannibal2.skyhanni.features.damageindicator
+import at.hannibal2.skyhanni.data.IslandType
import at.hannibal2.skyhanni.features.dungeon.DungeonData
import at.hannibal2.skyhanni.features.dungeon.DungeonLividFinder
import at.hannibal2.skyhanni.features.rift.RiftAPI
@@ -11,6 +12,7 @@ import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth
import at.hannibal2.skyhanni.utils.LorenzUtils.derpy
+import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.LorenzVec
import at.hannibal2.skyhanni.utils.StringUtils.matchRegex
import at.hannibal2.skyhanni.utils.getLorenzVec
@@ -258,7 +260,11 @@ class MobFinder {
}
if (entity is EntityDragon) {
//TODO testing and use sidebar data
- return EntityResult(bossType = BossType.END_ENDER_DRAGON)
+ if (IslandType.THE_END.isInIsland()) {
+ return EntityResult(bossType = BossType.END_ENDER_DRAGON)
+ } else if (IslandType.WINTER.isInIsland()) {
+ return EntityResult(bossType = BossType.WINTER_REINDRAKE)
+ }
}
if (entity is EntityIronGolem) {
if (entity.hasNameTagWith(3, "§e﴾ §8[§7Lv100§8] §lEndstone Protector§r ")) {