diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-09-07 11:02:13 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-09-07 11:02:13 +0200 |
commit | 2d0f63b156f936e9f056537a67eaa13bffa54c27 (patch) | |
tree | bf27dc6b30d9d499e0208c3e74f5dbece1fe1037 | |
parent | 5c016b2a7cf85d57698ec2e0ed73bf34cce50946 (diff) | |
download | skyhanni-2d0f63b156f936e9f056537a67eaa13bffa54c27.tar.gz skyhanni-2d0f63b156f936e9f056537a67eaa13bffa54c27.tar.bz2 skyhanni-2d0f63b156f936e9f056537a67eaa13bffa54c27.zip |
SummoningSoulsName integrate into SummoningMobManager config logic
6 files changed, 24 insertions, 9 deletions
diff --git a/FEATURES.md b/FEATURES.md index da0e18f64..bc99fb35f 100644 --- a/FEATURES.md +++ b/FEATURES.md @@ -52,9 +52,10 @@ - Option to change the item background according to the cooldown ## Summoning Mobs +- Summoning Soul Display (Show the name of dropped soul laying on the ground, not working in dungeon when Skytils' "Hide Non-Starred Mobs Nametags" is enabled) - Option to hide the nametag of your spawned summoning mobs - Option to mark the own summoning mobs in green -- Summoning mob display (Show the health of your spawned summoning mobs listed in an extra GUI element and hiding the corresponding spawning/despawning chat messages) +- Summoning Mob Display (Show the health of your spawned summoning mobs listed in an extra GUI element and hiding the corresponding spawning/despawning chat messages) ## Ashfang @@ -99,7 +100,6 @@ - Allow to copy, paste, and mark selected text in signs (not visual, but it's working still) - Pet Display (showing the currently selected pet as GUI element, without any fancy XP or level or percentage, but with auto-pet support) - Hiding exp Bottles lying on the ground -- Summon Soul Display (show the name of a dropped soul, not working in dungeon when Skytils' "Hide Non-Starred Mobs Nametags" is enabled) - Fixing Skytils custom Damage Splash - Gui element showing the real time - Highlight the voidling extremist in pink color diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Abilities.java b/src/main/java/at/hannibal2/skyhanni/config/features/Abilities.java index b9a69ed8c..a6c9c50f4 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Abilities.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Abilities.java @@ -17,6 +17,12 @@ public class Abilities { public boolean itemAbilityCooldownBackground = false; @Expose + @ConfigOption(name = "Summoning Soul Display", desc = "Show the name of dropped summoning souls laying on the ground. " + + "§cNot working in Dungeon if Skytils' 'Hide Non-Starred Mobs Nametags' feature is enabled!") + @ConfigEditorBoolean + public boolean summoningSoulDisplay = false; + + @Expose @ConfigOption(name = "Summoning Mob", desc = "") @ConfigEditorAccordion(id = 0) public boolean summoningMob = false; diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Chat.java b/src/main/java/at/hannibal2/skyhanni/config/features/Chat.java index 14baeeeb7..f674680bc 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Chat.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Chat.java @@ -87,4 +87,10 @@ public class Chat { "except for players who are close to the player, inside dungeon or during a Kuudra fight.") @ConfigEditorBoolean public boolean hideFarDeathMessages = false; + + @Expose + @ConfigOption(name = "Hide Far Deaths 2", desc = "Hide the death messages of other players, " + + "except for players who are close to the player, inside dungeon or during a Kuudra fight.") + @ConfigEditorBoolean + public boolean hideFarDeathMessages2 = false; } diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java index d8ad7886e..4c58a5118 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java @@ -24,12 +24,6 @@ public class Misc { public boolean hideExpBottles = false; @Expose - @ConfigOption(name = "Summon Soul Display", desc = "Shows the name above summoning souls that ready to pick up. " + - "§cNot working in Dungeon if Skytils' 'Hide Non-Starred Mobs Nametags' feature is enabled!") - @ConfigEditorBoolean - public boolean summonSoulDisplay = false; - - @Expose @ConfigOption(name = "Skytils Damage Splash", desc = "Fixing the custom damage splash feature from skytils.") @ConfigEditorBoolean public boolean fixSkytilsDamageSplash = true; diff --git a/src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt b/src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt index 36dbab9ed..03d9382d1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt @@ -36,6 +36,9 @@ class SummoningMobManager { //§a§ohannibal2's Tank Zombie§r §a160k§c❤ private val healthPattern = Pattern.compile("§a§o(.+)'s (.+)§r §[ae]([\\dkm]+)§c❤") + //§cThe Seraph recalled your 3 summoned allies! + private val seraphRecallPattern = Pattern.compile("§cThe Seraph recalled your (\\d) summoned allies!") + @SubscribeEvent fun onChatMessage(event: LorenzChatEvent) { if (!LorenzUtils.isOnHypixel) return @@ -57,6 +60,12 @@ class SummoningMobManager { event.blockedReason = "summoning_soul" } } + if (message == "§cThe Seraph recalled your summoned ally!" || seraphRecallPattern.matcher(message).matches()) { + despawned() + if (SkyHanniMod.feature.abilities.summoningMobDisplay) { + event.blockedReason = "summoning_soul" + } + } } var tick = 0 diff --git a/src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt b/src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt index ec813395a..59784f027 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/SummoningSoulsName.kt @@ -127,6 +127,6 @@ class SummoningSoulsName { } private fun isEnabled(): Boolean { - return LorenzUtils.inSkyblock && SkyHanniMod.feature.misc.summonSoulDisplay + return LorenzUtils.inSkyblock && SkyHanniMod.feature.abilities.summoningSoulDisplay } }
\ No newline at end of file |