aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorLuna <me@alexia.lol>2024-04-23 17:02:26 +0200
committerGitHub <noreply@github.com>2024-04-23 17:02:26 +0200
commit62cd934e231b6f76c5014c4568237222ba81b3aa (patch)
tree1e5853333e3ed35fba199564237d16658b83f30d /src/main/java/at
parent27cebc2d1a2f06a905abe69cdd43bba7857f8e2c (diff)
downloadskyhanni-62cd934e231b6f76c5014c4568237222ba81b3aa.tar.gz
skyhanni-62cd934e231b6f76c5014c4568237222ba81b3aa.tar.bz2
skyhanni-62cd934e231b6f76c5014c4568237222ba81b3aa.zip
Remove: Twinclaws Sound (#1527)
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/CoopBossHighlightConfig.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OthersBossConfig.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OwnBossConfig.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/VampireConfig.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt18
5 files changed, 2 insertions, 36 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/CoopBossHighlightConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/CoopBossHighlightConfig.java
index c3edb3b91..f3358c00c 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/CoopBossHighlightConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/CoopBossHighlightConfig.java
@@ -35,10 +35,4 @@ public class CoopBossHighlightConfig {
@ConfigEditorBoolean
@FeatureToggle
public boolean twinClawsTitle = true;
-
- @Expose
- @ConfigOption(name = "Twinclaws Sound", desc = "Play a sound when Twinclaws is about to happen.")
- @ConfigEditorBoolean
- @FeatureToggle
- public boolean twinClawsSound = true;
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OthersBossConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OthersBossConfig.java
index 87d9343d6..7f96a2d7b 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OthersBossConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OthersBossConfig.java
@@ -30,10 +30,4 @@ public class OthersBossConfig {
@ConfigEditorBoolean
@FeatureToggle
public boolean twinClawsTitle = true;
-
- @Expose
- @ConfigOption(name = "Twinclaws Sound", desc = "Play a sound when Twinclaws is about to happen.")
- @ConfigEditorBoolean
- @FeatureToggle
- public boolean twinClawsSound = true;
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OwnBossConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OwnBossConfig.java
index 0750bac3e..44834b46e 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OwnBossConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/OwnBossConfig.java
@@ -31,10 +31,4 @@ public class OwnBossConfig {
@ConfigEditorBoolean
@FeatureToggle
public boolean twinClawsTitle = true;
-
- @Expose
- @ConfigOption(name = "Twinclaws Sound", desc = "Play a sound when Twinclaws is about to happen.")
- @ConfigEditorBoolean
- @FeatureToggle
- public boolean twinClawsSound = true;
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/VampireConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/VampireConfig.java
index 911b78761..8bc908c6f 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/VampireConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/vampire/VampireConfig.java
@@ -47,7 +47,7 @@ public class VampireConfig {
public String steakColor = "0:255:255:0:88";
@Expose
- @ConfigOption(name = "Twinclaws", desc = "Delay the sound and title of Twinclaws alert for a given amount in milliseconds.")
+ @ConfigOption(name = "Twinclaws", desc = "Delay the Twinclaws alert for a given amount in milliseconds.")
@ConfigEditorSlider(minStep = 1, minValue = 0, maxValue = 1000)
public int twinclawsDelay = 0;
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 85bd64e9e..faf455246 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt
@@ -127,16 +127,9 @@ object VampireSlayerFeatures {
else if (containCoop && configCoopBoss.twinClawsTitle) true
else taggedEntityList.contains(this.entityId) && configOtherBoss.twinClawsTitle
- val shouldSendSound =
- if (containUser && configOwnBoss.twinClawsSound) true
- else if (containCoop && configCoopBoss.twinClawsSound) true
- else taggedEntityList.contains(this.entityId) && configOtherBoss.twinClawsSound
-
- if (shouldSendTitle || shouldSendSound) {
+ if (shouldSendTitle) {
DelayedRun.runDelayed(config.twinclawsDelay.milliseconds) {
if (nextClawSend < System.currentTimeMillis()) {
- if (shouldSendSound)
- playTwinclawsSound()
if (shouldSendTitle) {
LorenzUtils.sendTitle(
"§6§lTWINCLAWS",
@@ -204,15 +197,6 @@ object VampireSlayerFeatures {
}
}
- private fun playTwinclawsSound() {
- SkyHanniMod.coroutineScope.launch {
- repeat(15) {
- delay(50)
- SoundUtils.createSound("random.orb", 0.5f).playSound()
- }
- }
- }
-
private fun EntityOtherPlayerMP.isHighlighted(): Boolean {
return entityList.contains(this) || taggedEntityList.contains(this.entityId)
}