diff --git a/ExtraTextures/UI/ModeIndicatorArea.png b/ExtraTextures/UI/ModeIndicatorArea.png index 701089c3cc..508fe00039 100644 Binary files a/ExtraTextures/UI/ModeIndicatorArea.png and b/ExtraTextures/UI/ModeIndicatorArea.png differ diff --git a/ExtraTextures/UI/ModeIndicatorMalice.png b/ExtraTextures/UI/ModeIndicatorMalice.png new file mode 100644 index 0000000000..bfa33cbe8d Binary files /dev/null and b/ExtraTextures/UI/ModeIndicatorMalice.png differ diff --git a/ExtraTextures/UI/ModeIndicatorRune.png b/ExtraTextures/UI/ModeIndicatorRune.png deleted file mode 100644 index 51a2ed08d5..0000000000 Binary files a/ExtraTextures/UI/ModeIndicatorRune.png and /dev/null differ diff --git a/Items/DifficultyItems/Malice.cs b/Items/DifficultyItems/Malice.cs index 998250226f..874febecbf 100644 --- a/Items/DifficultyItems/Malice.cs +++ b/Items/DifficultyItems/Malice.cs @@ -3,6 +3,7 @@ using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -16,6 +17,7 @@ namespace CalamityMod.Items.DifficultyItems Tooltip.SetDefault("Enrages every boss and allows them to drop special items.\n" + "Nurse no longer heals while a boss is alive.\n" + "Effect can be toggled on and off."); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 8)); } public override void SetDefaults() @@ -27,6 +29,7 @@ namespace CalamityMod.Items.DifficultyItems item.useTime = 45; item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item119; + item.noUseGraphic = true; item.consumable = false; } diff --git a/Items/DifficultyItems/Malice.png b/Items/DifficultyItems/Malice.png index 493a9b001c..fa448647be 100644 Binary files a/Items/DifficultyItems/Malice.png and b/Items/DifficultyItems/Malice.png differ diff --git a/UI/ModeIndicatorUI.cs b/UI/ModeIndicatorUI.cs index 93e9f8b1e2..e00dfdeb7e 100644 --- a/UI/ModeIndicatorUI.cs +++ b/UI/ModeIndicatorUI.cs @@ -10,8 +10,8 @@ namespace CalamityMod.UI { public static readonly Vector2 OffsetToAreaCenter = new Vector2(0f, 4f); public static Vector2 DifficultyIconOffset => new Vector2(0f, -16f); - public static Vector2 ArmageddonIconOffset => new Vector2(11.5f, 7f); - public static Vector2 DefiledRuneIconOffset => new Vector2(-12f, 7); + public static Vector2 ArmageddonIconOffset => new Vector2(12f, 7f); + public static Vector2 MaliceIconOffset => new Vector2(-12f, 7f); public static void Draw(SpriteBatch spriteBatch) { // The mode indicator should only be displayed when the inventory is open, to prevent obstruction. @@ -22,9 +22,7 @@ namespace CalamityMod.UI Texture2D revengeanceIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/ModeIndicatorRev"); Texture2D deathIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/ModeIndicatorDeath"); Texture2D armageddonIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/ModeIndicatorArma"); - - // TODO -- When Malice is added, replace this with Malice's indicator. - Texture2D defiledRuneIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/ModeIndicatorRune"); + Texture2D maliceIconTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/ModeIndicatorMalice"); Vector2 drawCenter = new Vector2(Main.screenWidth - 400f, 72f) + outerAreaTexture.Size() * 0.5f; @@ -33,14 +31,14 @@ namespace CalamityMod.UI if (CalamityWorld.revenge) { Texture2D difficultyIconToUse = CalamityWorld.death ? deathIconTexture : revengeanceIconTexture; - spriteBatch.Draw(difficultyIconToUse, drawCenter + DifficultyIconOffset, null, Color.White, 0f, revengeanceIconTexture.Size() * 0.5f, 0.9f, SpriteEffects.None, 0f); + spriteBatch.Draw(difficultyIconToUse, drawCenter + DifficultyIconOffset, null, Color.White, 0f, difficultyIconToUse.Size() * 0.5f, 0.9f, SpriteEffects.None, 0f); } if (CalamityWorld.armageddon) - spriteBatch.Draw(armageddonIconTexture, drawCenter + ArmageddonIconOffset, null, Color.White, 0f, revengeanceIconTexture.Size() * 0.5f, 0.9f, SpriteEffects.None, 0f); + spriteBatch.Draw(armageddonIconTexture, drawCenter + ArmageddonIconOffset, null, Color.White, 0f, armageddonIconTexture.Size() * 0.5f, 0.9f, SpriteEffects.None, 0f); - /*if (false) - spriteBatch.Draw(defiledRuneIconTexture, drawCenter + DefiledRuneIconOffset, null, Color.White, 0f, revengeanceIconTexture.Size() * 0.5f, 0.9f, SpriteEffects.None, 0f);*/ + if (CalamityWorld.malice) + spriteBatch.Draw(maliceIconTexture, drawCenter + MaliceIconOffset, null, Color.White, 0f, maliceIconTexture.Size() * 0.5f, 0.9f, SpriteEffects.None, 0f); } } }