diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-11 07:46:01 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-11 07:46:01 +0100 |
commit | 1f64f15f8cd4a53b5d970248972a138c5db95655 (patch) | |
tree | fec54890953fbec619c1d9a137617bcf2c683686 /src/main/java/at/hannibal2/skyhanni/features | |
parent | d542bad4e83d86bca7a307f7c32f16864789c30c (diff) | |
download | skyhanni-1f64f15f8cd4a53b5d970248972a138c5db95655.tar.gz skyhanni-1f64f15f8cd4a53b5d970248972a138c5db95655.tar.bz2 skyhanni-1f64f15f8cd4a53b5d970248972a138c5db95655.zip |
Added Kuudra Key Number overlay. Added colored highlight support for zealots, bruisers and special zealots.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 12 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt index 2071c1311..a8825354b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt @@ -104,6 +104,18 @@ class ItemDisplayOverlayFeatures { } } + if (SkyHanniMod.feature.inventory.itemNumberAsStackSize.contains(7)) { + if (name.contains("Kuudra Key")) { + return when (name) { + "Kuudra Key" -> "§a1" + "Hot Kuudra Key" -> "§22" + "Burning Kuudra Key" -> "§e3" + "Fiery Kuudra Key" -> "§64" + "Infernal Kuudra Key" -> "§c5" + else -> "§4?" + } + } + } return "" } 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 |