From d39c7a5b045cb1a8e21f3a46a9169d2da1a97658 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sat, 6 Jun 2026 18:30:44 -0400 Subject: [PATCH 1/4] Reduce Divine Meat's duration to 8 minutes 30 minutes is absolutely ridiculous for an infinite food item, that basically just outclasses everything except Golden Delight and Quality Slop --- Items/Potions/Food/DivineMeat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Potions/Food/DivineMeat.cs b/Items/Potions/Food/DivineMeat.cs index 26cd66a626..53554774cd 100644 --- a/Items/Potions/Food/DivineMeat.cs +++ b/Items/Potions/Food/DivineMeat.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Items.Potions.Food Item.UseSound = SoundID.Item2; Item.useStyle = ItemUseStyleID.EatFood; Item.buffType = BuffID.WellFed2; - Item.buffTime = CalamityUtils.MinutesToFrames(30); + Item.buffTime = CalamityUtils.MinutesToFrames(8); Item.useTurn = true; Item.consumable = false; } From 97c63692f626ab4592bfc384525a8953a1960c9e Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sat, 6 Jun 2026 20:31:03 -0400 Subject: [PATCH 2/4] Divine Meat lasts 15 mins and has 15 min cooldown --- Items/Potions/Food/DivineMeat.cs | 41 ++++++++++++++++++- .../Mods.CalamityMod.Items.Potions.hjson | 2 +- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/Items/Potions/Food/DivineMeat.cs b/Items/Potions/Food/DivineMeat.cs index 53554774cd..d426d6d820 100644 --- a/Items/Potions/Food/DivineMeat.cs +++ b/Items/Potions/Food/DivineMeat.cs @@ -11,6 +11,7 @@ using ReLogic.Content; using Terraria; using Terraria.DataStructures; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Food @@ -19,8 +20,10 @@ namespace CalamityMod.Items.Potions.Food { private static Asset FadedStarRing; private static Asset BloomFlare; + private static int DivineMeatCooldown = CalamityUtils.MinutesToFrames(15); public new string LocalizationCategory => "Items.Potions"; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DivineMeatCooldown / 60).FramesToSeconds()); public override void Load() { @@ -56,11 +59,18 @@ namespace CalamityMod.Items.Potions.Food Item.UseSound = SoundID.Item2; Item.useStyle = ItemUseStyleID.EatFood; Item.buffType = BuffID.WellFed2; - Item.buffTime = CalamityUtils.MinutesToFrames(8); + Item.buffTime = CalamityUtils.MinutesToFrames(15); Item.useTurn = true; Item.consumable = false; } + public override bool CanUseItem(Player player) => player.GetModPlayer().divineMeatCooldown <= 0; + public override bool? UseItem(Player player) + { + player.GetModPlayer().divineMeatCooldown = DivineMeatCooldown; + return null; + } + public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) { // Spawn some cute sparkles for added effect when dropped in the world. @@ -113,5 +123,34 @@ namespace CalamityMod.Items.Potions.Food return true; } + + public override void PostDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) + { + if (Main.LocalPlayer.GetModPlayer().divineMeatCooldown <= 0) + return; + + Vector2 barScale = new Vector2(1.25f, 1f); + var barBG = ModContent.Request("CalamityMod/UI/MiscTextures/GenericBarBack").Value; + var barFG = ModContent.Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; + + Vector2 drawPos = position + new Vector2((frame.Width - barBG.Width * 0.95f) * scale, (frame.Height - 3f) * scale); + Rectangle frameCrop = new Rectangle(0, 0, (int)((1 - Main.LocalPlayer.GetModPlayer().divineMeatCooldown / (float)DivineMeatCooldown) * barFG.Width), barFG.Height); + Color colorBG = Color.Black; + Color colorFG = Color.White; + + spriteBatch.Draw(barBG, drawPos, null, colorBG, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, colorFG * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + } + } + + public class DivineMeatPlayer : ModPlayer + { + public int divineMeatCooldown = 0; + + public override void PostUpdateMiscEffects() + { + if (divineMeatCooldown > 0) + divineMeatCooldown--; + } } } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 86f15ed0cf..913a4ea5e9 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -581,7 +581,7 @@ DivineMeat: { Tooltip: ''' {$CommonItemTooltip.MediumStats} - {$Common.NotConsumable} + {$Common.NotConsumable}, but takes {0} minutes to regenerate 'A blessed strip of pork that never seems to be entirely consumed...' ''' } From 3c5a4b5a62bc9e166ea76d0435ded90b5563bd84 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Wed, 10 Jun 2026 16:05:51 -0700 Subject: [PATCH 3/4] Updated Divine to Delicious Meat --- Items/Potions/Food/DeliciousMeat.cs | 41 +++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/Items/Potions/Food/DeliciousMeat.cs b/Items/Potions/Food/DeliciousMeat.cs index 1dec5c6c86..c62b40d08a 100644 --- a/Items/Potions/Food/DeliciousMeat.cs +++ b/Items/Potions/Food/DeliciousMeat.cs @@ -1,6 +1,6 @@ using System; using CalamityMod.Effects; -using CalamityMod.Items.Tools; +using Terraria.Localization; using CalamityMod.Particles; using CalamityMod.Systems.Graphic.PixelationSystem; using CalamityMod.Utilities.Daybreak; @@ -19,8 +19,10 @@ namespace CalamityMod.Items.Potions.Food { private static Asset FadedStarRing; private static Asset BloomFlare; + private static int DeliciousMeatCooldown = CalamityUtils.MinutesToFrames(15); public new string LocalizationCategory => "Items.Potions"; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DeliciousMeatCooldown / 60).FramesToSeconds()); public override void Load() { @@ -56,11 +58,17 @@ namespace CalamityMod.Items.Potions.Food Item.UseSound = SoundID.Item2; Item.useStyle = ItemUseStyleID.EatFood; Item.buffType = BuffID.WellFed2; - Item.buffTime = CalamityUtils.MinutesToFrames(30); + Item.buffTime = CalamityUtils.MinutesToFrames(15); Item.useTurn = true; Item.consumable = false; } + public override bool CanUseItem(Player player) => player.GetModPlayer().deliciousMeatCooldown <= 0; + public override bool? UseItem(Player player) + { + player.GetModPlayer().deliciousMeatCooldown = DeliciousMeatCooldown; + return null; + } public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) { // Spawn some cute sparkles for added effect when dropped in the world. @@ -113,5 +121,34 @@ namespace CalamityMod.Items.Potions.Food return true; } + + public override void PostDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) + { + if (Main.LocalPlayer.GetModPlayer().deliciousMeatCooldown <= 0) + return; + + Vector2 barScale = new Vector2(1.25f, 1f); + var barBG = ModContent.Request("CalamityMod/UI/MiscTextures/GenericBarBack").Value; + var barFG = ModContent.Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; + + Vector2 drawPos = position + new Vector2((frame.Width - barBG.Width * 0.95f) * scale, (frame.Height - 3f) * scale); + Rectangle frameCrop = new Rectangle(0, 0, (int)((1 - Main.LocalPlayer.GetModPlayer().deliciousMeatCooldown / (float)DeliciousMeatCooldown) * barFG.Width), barFG.Height); + Color colorBG = Color.Black; + Color colorFG = Color.White; + + spriteBatch.Draw(barBG, drawPos, null, colorBG, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, colorFG * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + } + } + + public class DeliciousMeatPlayer : ModPlayer + { + public int deliciousMeatCooldown = 0; + + public override void PostUpdateMiscEffects() + { + if (deliciousMeatCooldown > 0) + deliciousMeatCooldown--; + } } } From b9e1d13b5cd4892dfd0f6663901d1f10c2524fbd Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Wed, 10 Jun 2026 16:14:35 -0700 Subject: [PATCH 4/4] Final localization fix --- Localization/en-US/Mods.CalamityMod.Items.Potions.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 68c663ac6f..18cd1593dd 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -65,7 +65,7 @@ DeliciousMeat: { Tooltip: ''' {$CommonItemTooltip.MediumStats} - {$Common.NotConsumable} + {$Common.NotConsumable}, but takes {0} minutes to regenerate 'A blessed strip of pork that never seems to be entirely consumed...' ''' }