aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/slayer
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-10-03 08:34:40 -0400
committerGitHub <noreply@github.com>2024-10-03 14:34:40 +0200
commit7efb11313d70c65b8df6692ed237f137d4d346d1 (patch)
tree206da44a87d03bb516041e59bcd692986c11475f /src/main/java/at/hannibal2/skyhanni/features/slayer
parent4d4fbd019a58a694c0d36ae08d25a97c9db268d8 (diff)
downloadskyhanni-7efb11313d70c65b8df6692ed237f137d4d346d1.tar.gz
skyhanni-7efb11313d70c65b8df6692ed237f137d4d346d1.tar.bz2
skyhanni-7efb11313d70c65b8df6692ed237f137d4d346d1.zip
Backend: Detekt Fixes Part 5 (#2617)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/slayer')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt7
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShield.kt1
3 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt
index 0fd24e25c..4798a9432 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt
@@ -43,8 +43,10 @@ object SlayerMiniBossFeatures {
if (bossType.clazz != entity.javaClass) continue
miniBosses = miniBosses.editCopy { add(entity) }
- RenderLivingEntityHelper.setEntityColorWithNoHurtTime(entity, LorenzColor.AQUA.toColor().withAlpha(127))
- { config.slayerMinibossHighlight }
+ RenderLivingEntityHelper.setEntityColorWithNoHurtTime(
+ entity,
+ LorenzColor.AQUA.toColor().withAlpha(127)
+ ) { config.slayerMinibossHighlight }
}
}
@@ -79,6 +81,5 @@ object SlayerMiniBossFeatures {
SVEN(EntityWolf::class.java, 45_000, 120_000, 480_000),
VOIDLING(EntityEnderman::class.java, 8_400_000, 17_500_000, 52_500_000),
INFERNAL(EntityBlaze::class.java, 12_000_000, 25_000_000, 75_000_000),
- ;
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt
index 75b1efd34..0a07e62fe 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerType.kt
@@ -16,6 +16,6 @@ enum class SlayerType(val displayName: String, val rngName: String, val clazz: C
;
companion object {
- fun getByName(name: String): SlayerType? = entries.firstOrNull {name.contains(it.displayName)}
+ fun getByName(name: String): SlayerType? = entries.firstOrNull { name.contains(it.displayName) }
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShield.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShield.kt
index db3826d44..290f00678 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShield.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/HellionShield.kt
@@ -14,5 +14,4 @@ enum class HellionShield(
ASHEN("§8§lASHEN", "Ashen", LorenzColor.DARK_GRAY),
SPIRIT("§f§lSPIRIT", "Spirit", LorenzColor.WHITE),
CRYSTAL("§b§lCRYSTAL", "Crystal", LorenzColor.AQUA),
- ;
}