diff options
author | Brandon <brandon.wamboldt@gmail.com> | 2023-12-16 06:50:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-16 11:50:45 +0100 |
commit | f2711d19b3a727eb0f204d064f49cb7355540282 (patch) | |
tree | e3bce86336b69374e9aa53bf215809494dc5e05e /src/main | |
parent | 7715c155b1244f0357eb47c927fb9b056372adee (diff) | |
download | skyhanni-f2711d19b3a727eb0f204d064f49cb7355540282.tar.gz skyhanni-f2711d19b3a727eb0f204d064f49cb7355540282.tar.bz2 skyhanni-f2711d19b3a727eb0f204d064f49cb7355540282.zip |
Add highlight for minos inquisitors to make them easier to see (#802)
Add highlight for Minos Inquisitors to make them easier to see. #802
Diffstat (limited to 'src/main')
3 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt index fad364296..0a8e08ce5 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt @@ -112,6 +112,7 @@ import at.hannibal2.skyhanni.features.event.diana.GriffinBurrowParticleFinder import at.hannibal2.skyhanni.features.event.diana.GriffinPetWarning import at.hannibal2.skyhanni.features.event.diana.InquisitorWaypointShare import at.hannibal2.skyhanni.features.event.diana.SoopyGuessBurrow +import at.hannibal2.skyhanni.features.event.jerry.HighlightInquisitors import at.hannibal2.skyhanni.features.event.jerry.HighlightJerries import at.hannibal2.skyhanni.features.event.jerry.frozentreasure.FrozenTreasureTracker import at.hannibal2.skyhanni.features.event.lobby.waypoints.christmas.PresentWaypoints @@ -678,6 +679,7 @@ class SkyHanniMod { loadModule(PresentWaypoints()) loadModule(JyrreTimer()) loadModule(NewYearCakeReminder()) + loadModule(HighlightInquisitors()) init() diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/DianaConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/DianaConfig.java index f2db07f7e..a99268b0a 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/DianaConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/DianaConfig.java @@ -11,6 +11,12 @@ import org.lwjgl.input.Keyboard; public class DianaConfig { @Expose + @ConfigOption(name = "Highlight Inquisitors", desc = "Highlights Inquisitors found from the Mythological Event perk.") + @ConfigEditorBoolean + @FeatureToggle + public boolean highlightInquisitors = true; + + @Expose @ConfigOption(name = "Guess Next Burrow", desc = "Uses math from §eSoopy's Guess Logic §7to find the next burrow. Does not require SoopyV2 or ChatTriggers to be installed.") @ConfigEditorBoolean @FeatureToggle diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/HighlightInquisitors.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/HighlightInquisitors.kt new file mode 100644 index 000000000..59d10dbb5 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/HighlightInquisitors.kt @@ -0,0 +1,26 @@ +package at.hannibal2.skyhanni.features.event.jerry + +import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.events.withAlpha +import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper +import at.hannibal2.skyhanni.utils.LorenzColor +import at.hannibal2.skyhanni.utils.LorenzUtils +import net.minecraft.entity.player.EntityPlayer +import net.minecraftforge.event.entity.EntityJoinWorldEvent +import net.minecraftforge.fml.common.eventhandler.SubscribeEvent + +class HighlightInquisitors { + private val config get() = SkyHanniMod.feature.event.diana + + @SubscribeEvent + fun onJoinWorld(event: EntityJoinWorldEvent) { + if (!LorenzUtils.inSkyBlock) return + if (!config.highlightInquisitors) return + + val entity = event.entity + + if (entity is EntityPlayer && entity.name == "Minos Inquisitor") { + RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.AQUA.toColor().withAlpha(127)) { config.highlightInquisitors } + } + } +} |