From 1f64f15f8cd4a53b5d970248972a138c5db95655 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 11 Feb 2023 07:46:01 +0100 Subject: Added Kuudra Key Number overlay. Added colored highlight support for zealots, bruisers and special zealots. --- .../at/hannibal2/skyhanni/features/mobs/MobHighlight.kt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/features/mobs') diff --git a/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt b/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt index 8d5d84940..8c58c70a3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt @@ -9,6 +9,7 @@ import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth import net.minecraft.client.entity.EntityOtherPlayerMP +import net.minecraft.entity.monster.EntityEnderman import net.minecraft.entity.monster.EntitySpider import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -50,5 +51,21 @@ class MobHighlight { RenderLivingEntityHelper.setNoHurtTime(entity) { SkyHanniMod.feature.mobs.corleoneHighlighter } } } + + if (SkyHanniMod.feature.mobs.zealotBruiserHighlighter) { + if ((maxHealth == 65_000 || maxHealth == 13_000) && entity is EntityEnderman) { + RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.DARK_AQUA.toColor().withAlpha(127)) + { SkyHanniMod.feature.mobs.zealotBruiserHighlighter } + RenderLivingEntityHelper.setNoHurtTime(entity) { SkyHanniMod.feature.mobs.zealotBruiserHighlighter } + } + } + + if (SkyHanniMod.feature.mobs.specialZealotHighlighter) { + if (maxHealth == 2_000 && entity is EntityEnderman) { + RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.DARK_RED.toColor().withAlpha(50)) + { SkyHanniMod.feature.mobs.specialZealotHighlighter } + RenderLivingEntityHelper.setNoHurtTime(entity) { SkyHanniMod.feature.mobs.specialZealotHighlighter } + } + } } } \ No newline at end of file -- cgit