aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/slayer
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-11 12:28:07 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-11 12:28:07 +0200
commit8ccfdc9b7d22352c23d4bff5ee240fa71e302262 (patch)
treea11139ca4bdfba81fcc538ea76424fe66ca1b409 /src/main/java/at/hannibal2/skyhanni/features/slayer
parent4f9fe89aac7b97741f7079ab1ad5f7051e0fa7f7 (diff)
downloadskyhanni-8ccfdc9b7d22352c23d4bff5ee240fa71e302262.tar.gz
skyhanni-8ccfdc9b7d22352c23d4bff5ee240fa71e302262.tar.bz2
skyhanni-8ccfdc9b7d22352c23d4bff5ee240fa71e302262.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/slayer')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt
index 308bebf7a..23aad848c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt
@@ -184,14 +184,14 @@ object VampireSlayerFeatures {
val coopBoss = configCoopBoss.highlight && containCoop && isNPC()
val shouldRender = if (ownBoss) true else if (otherBoss) true else coopBoss
- val color =
- when {
- canUseSteak && config.changeColorWhenCanSteak -> config.steakColor.color()
- ownBoss -> configOwnBoss.highlightColor.color()
- otherBoss -> configOtherBoss.highlightColor.color()
- coopBoss -> configCoopBoss.highlightColor.color()
- else -> 0
- }
+ val color = when {
+ canUseSteak && config.changeColorWhenCanSteak -> config.steakColor.color()
+ ownBoss -> configOwnBoss.highlightColor.color()
+ otherBoss -> configOtherBoss.highlightColor.color()
+ coopBoss -> configCoopBoss.highlightColor.color()
+
+ else -> 0
+ }
val shouldSendSteakTitle =
if (canUseSteak && configOwnBoss.steakAlert && containUser) true