aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-07 10:47:17 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-07 10:47:17 +0200
commit4f12dd34459479a292d90110fcee5d32696129fd (patch)
tree7daf951c9a5ffc5041a82ecab9f8cb3e58598e7e /src/main/java/at/hannibal2
parenta7dadf67ddfba8b20f5ff5cee4b67e5e11c3219d (diff)
downloadskyhanni-4f12dd34459479a292d90110fcee5d32696129fd.tar.gz
skyhanni-4f12dd34459479a292d90110fcee5d32696129fd.tar.bz2
skyhanni-4f12dd34459479a292d90110fcee5d32696129fd.zip
Wither impact ability cooldown only shows with all 3 scrolls attached
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt
index 309a1ab70..a57dd0020 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt
@@ -3,12 +3,14 @@ package at.hannibal2.skyhanni.features.itemabilities.abilitycooldown
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.ItemRenderBackground.Companion.background
import at.hannibal2.skyhanni.events.*
+import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils
import at.hannibal2.skyhanni.utils.ItemUtils.cleanName
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.between
+import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getAbilityScrolls
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import net.minecraft.client.Minecraft
import net.minecraft.item.ItemStack
@@ -25,6 +27,9 @@ class ItemAbilityCooldown {
fun onSoundEvent(event: PlaySoundEvent) {
if (event.soundName == "mob.zombie.remedy") {
if (event.pitch == 0.6984127f && event.volume == 1f) {
+ val abilityScrolls = InventoryUtils.getItemInHand()?.getAbilityScrolls() ?: return
+ if (abilityScrolls.size != 3) return
+
ItemAbility.HYPERION.sound()
}
}