diff --git a/Items/Potions/Fabsoup.cs b/Items/Potions/Fabsoup.cs new file mode 100644 index 0000000000..3945fc9e27 --- /dev/null +++ b/Items/Potions/Fabsoup.cs @@ -0,0 +1,60 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Rarities; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; +using Microsoft.Xna.Framework; + +namespace CalamityMod.Items.Potions +{ + public class Fabsoup : ModItem + { + public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/SoupConsumption"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Pot of Pain"); + Tooltip.SetDefault("{$CommonItemTooltip.MajorStats}\n'hrngh, soup'"); + SacrificeTotal = 1; + } + + public override void SetDefaults() + { + Item.width = 56; + Item.height = 50; + Item.value = 0; + Item.rare = ModContent.RarityType(); + Item.maxStack = 1; + Item.consumable = false; + Item.useAnimation = 901; + Item.useTime = 901; + Item.UseSound = UseSound; + Item.useStyle = ItemUseStyleID.DrinkLiquid; + Item.useTurn = true; + } + + public override void UseItemFrame(Player player) + { + int time = CalamityUtils.SecondsToFrames(1800f); + if (player.itemAnimation == 180) + { + player.AddBuff(BuffID.WellFed3, time); + } + // ow hot + if (player.itemAnimation == 60) + { + player.AddBuff(BuffID.WellFed3, time); + player.AddBuff(BuffID.OnFire, time); + player.AddBuff(BuffID.Frostburn, time); + player.AddBuff(BuffID.CursedInferno, time); + player.AddBuff(ModContent.BuffType(), time); + player.AddBuff(ModContent.BuffType(), time); + player.AddBuff(ModContent.BuffType(), time); + player.AddBuff(ModContent.BuffType(), time); + player.AddBuff(ModContent.BuffType(), time); + player.AddBuff(ModContent.BuffType(), time); + player.AddBuff(ModContent.BuffType(), time); + } + } + } +} diff --git a/Items/Potions/Fabsoup.png b/Items/Potions/Fabsoup.png new file mode 100644 index 0000000000..0a576efee3 Binary files /dev/null and b/Items/Potions/Fabsoup.png differ diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index 346512e373..9a04a13651 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -1534,6 +1534,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares // Treasure bag npcLoot.Add(ItemDropRule.BossBagByCondition(DropHelper.If(CanDropLoot), ModContent.ItemType())); + // Legendary seed soup + mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(info => info.npc.type == ModContent.NPCType() && info.npc.ModNPC().exoMechdusa), ModContent.ItemType()), hideLootReport: true); + // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { diff --git a/Sounds/Item/SoupConsumption.ogg b/Sounds/Item/SoupConsumption.ogg new file mode 100644 index 0000000000..4980e5960b Binary files /dev/null and b/Sounds/Item/SoupConsumption.ogg differ