From 56c718ae826683c9fb01e8a96388eb12ff00bf56 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Wed, 11 Mar 2026 22:03:31 -0400 Subject: [PATCH 01/28] initial (very unfinished) --- Items/Accessories/IVDripOnTheRocks.cs | 232 ++++++++++++++++-- Items/Accessories/IVDripOnTheRocks.png | Bin 1367 -> 16240 bytes Items/CalamityGlobalItemTooltip.cs | 2 +- Items/Potions/Alcohol/BloodyMary.cs | 15 +- Items/Potions/Alcohol/CaribbeanRum.cs | 13 +- Items/Potions/Alcohol/CinnamonRoll.cs | 13 +- Items/Potions/Alcohol/Everclear.cs | 13 +- Items/Potions/Alcohol/EvergreenGin.cs | 13 +- Items/Potions/Alcohol/Fireball.cs | 13 +- Items/Potions/Alcohol/GrapeBeer.cs | 13 +- Items/Potions/Alcohol/Manhattan.cs | 13 +- Items/Potions/Alcohol/Margarita.cs | 13 +- Items/Potions/Alcohol/Moonshine.cs | 13 +- Items/Potions/Alcohol/MoscowMule.cs | 13 +- Items/Potions/Alcohol/OldFashioned.cs | 13 +- Items/Potions/Alcohol/PurpleHaze.cs | 13 +- Items/Potions/Alcohol/RedWine.cs | 13 +- Items/Potions/Alcohol/Rum.cs | 13 +- Items/Potions/Alcohol/Screwdriver.cs | 13 +- Items/Potions/Alcohol/StarBeamRye.cs | 13 +- Items/Potions/Alcohol/Tequila.cs | 13 +- Items/Potions/Alcohol/TequilaSunrise.cs | 13 +- Items/Potions/Alcohol/Vodka.cs | 13 +- Items/Potions/Alcohol/Whiskey.cs | 13 +- Items/Potions/Alcohol/WhiteWine.cs | 13 +- .../Mods.CalamityMod.Items.Accessories.hjson | 7 +- 26 files changed, 466 insertions(+), 63 deletions(-) diff --git a/Items/Accessories/IVDripOnTheRocks.cs b/Items/Accessories/IVDripOnTheRocks.cs index aebb7705d0..df1b5fcfdd 100644 --- a/Items/Accessories/IVDripOnTheRocks.cs +++ b/Items/Accessories/IVDripOnTheRocks.cs @@ -1,42 +1,242 @@ -using CalamityMod.CalPlayer; +using System; +using System.Collections.Generic; +using System.Linq; using CalamityMod.Items.Materials; -using CalamityMod.Items.Potions.Alcohol; -using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Rarities; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Audio; +using Terraria.GameContent; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; +using Terraria.UI; namespace CalamityMod.Items.Accessories { + + public enum AlcoholType + { + None, + BloodyMary, + CaribbeanRum, + CinnamonRoll, + Everclear, + EvergreenGin, + Fireball, + GrapeBeer, + Manhattan, + Margarita, + Moonshine, + MoscowMule, + OldFashioned, + PurpleHaze, + RedWine, + Rum, + Screwdriver, + StarBeamRye, + Tequila, + TequilaSunrise, + Vodka, + Whiskey, + WhiteWine, + Ale // DOES NOT USE IALCOHOLITEM YET + } + + public interface IAlcoholItem + { + Action AlcoholEffect { get; } + AlcoholType AlcoholVariant { get; } + } + public class IVDripOnTheRocks : ModItem, ILocalizedModType { + public int containedAlcoholID = -1; + public AlcoholType currentAlcoholType = AlcoholType.None; public new string LocalizationCategory => "Items.Accessories"; - public static readonly float DamageBoostMultiplier = 1.25f; // Same as Old Fashioned but can be changed at any time - public static readonly float DamageReductionMultiplier = 0.75f; // Same as Old Fashioned but can be changed at any time - public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DamageBoostMultiplier).ToString("N2"), (DamageReductionMultiplier).ToString("N2")); public override void SetDefaults() + public static readonly float DamageBoostMultiplier = 1.25f; // (only exists right now so that it compiles, leave it be) + public static readonly float DamageReductionMultiplier = 0.75f; // (only exists right now so that it compiles, leave it be) + + public override void SetStaticDefaults() + { + Main.RegisterItemAnimation(Item.type, new Terraria.DataStructures.DrawAnimationVertical(1, 24)); + ItemID.Sets.AnimatesAsSoul[Item.type] = true; + } + + public override void SetDefaults() { Item.width = 58; - Item.height = 60; + Item.height = 62; Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } - public override void UpdateAccessory(Player player, bool hideVisual) + public override void Load() { - CalamityPlayer modPlayer = player.Calamity(); - modPlayer.ivDrip = true; + On_ItemSlot.OverrideLeftClick += IvDripAlcoholEquip; } - public override void AddRecipes() + public override void Unload() { - CreateRecipe(). - AddIngredient(). - AddIngredient(6). - AddTile(TileID.MythrilAnvil). - Register(); + On_ItemSlot.OverrideLeftClick -= IvDripAlcoholEquip; + } + + private bool IvDripAlcoholEquip(On_ItemSlot.orig_OverrideLeftClick orig, Item[] inv, int context, int slot) + { + if (context == ItemSlot.Context.InventoryItem || context == ItemSlot.Context.ChestItem) + { + Item mouseItem = Main.mouseItem; + Item targetItem = inv[slot]; + + // Alcohol into this acc + if (targetItem.ModItem is IVDripOnTheRocks drip && mouseItem.ModItem is IAlcoholItem alcohol) + { + if (drip.containedAlcoholID == -1) + { + drip.containedAlcoholID = mouseItem.type; + drip.currentAlcoholType = alcohol.AlcoholVariant; + + mouseItem.stack--; + if (mouseItem.stack <= 0) + mouseItem.TurnToAir(); + + SoundEngine.PlaySound(SoundID.Grab); + return true; + } + } + + if (mouseItem.ModItem is IVDripOnTheRocks dripHeld && targetItem.ModItem is IAlcoholItem alcoholTarget) + { + if (dripHeld.containedAlcoholID == -1) + { + dripHeld.containedAlcoholID = targetItem.type; + dripHeld.currentAlcoholType = alcoholTarget.AlcoholVariant; + + targetItem.stack--; + if (targetItem.stack <= 0) + targetItem.TurnToAir(); + + SoundEngine.PlaySound(SoundID.Grab); + return true; + } + } + } + + return orig(inv, context, slot); + } + + #region Shift-Right Click to Empty IV Drip + + // Allow shift-right clicking only if the IV drip actually contains alcohol + public override bool CanRightClick() => containedAlcoholID != -1 && Main.keyState.IsKeyDown(Microsoft.Xna.Framework.Input.Keys.LeftShift); + + public override void RightClick(Player player) + { + if (containedAlcoholID != -1) + { + // Give the alcohol back to the player + player.QuickSpawnItem(player.GetSource_ItemUse(Item), containedAlcoholID); + + containedAlcoholID = -1; + currentAlcoholType = AlcoholType.None; + + Item.stack++; + + SoundEngine.PlaySound(SoundID.Grab); + } + } + #endregion + + public override void UpdateAccessory(Player player, bool hideVisual) + { + IVDripPlayer dripPlayer = player.GetModPlayer(); + dripPlayer.ivDripEquipped = true; + + if (containedAlcoholID != -1) + { + Item alcoholItem = new Item(containedAlcoholID); + + if (alcoholItem.ModItem is IAlcoholItem alcohol) + dripPlayer.ApplyAlcoholEffect(alcohol.AlcoholEffect); + } + } + public override void ModifyTooltips(List tooltips) + { + if (tooltips == null) return; + + var effectLine = tooltips.FirstOrDefault(x => x.Text.Contains("[EFFECT]")); + var nameLine = tooltips.FirstOrDefault(x => x.Text.Contains("[NAME]")); + + if (containedAlcoholID == -1) + { + if (effectLine != null) + { + effectLine.Text = this.GetLocalizedValue("Empty"); + effectLine.OverrideColor = Color.Gray; + } + nameLine?.Hide(); + return; + } + + if (effectLine != null) + { + string effectText = Lang.GetTooltip(containedAlcoholID).ToString(); + effectLine.Text = effectText; + effectLine.OverrideColor = Color.White; + } + + if (nameLine != null) + { + string alcoholName = Lang.GetItemNameValue(containedAlcoholID); + nameLine.Text = $"Currently filled with [c/FF81E4:{alcoholName}]"; + } + } + + // Draw the correct alcohol variant frame + public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) + { + Texture2D texture = TextureAssets.Item[Item.type].Value; + + int frameHeight = texture.Height / 24; + int frameIndex = (int)currentAlcoholType; + + Rectangle targetFrame = new Rectangle(0, frameIndex * frameHeight, texture.Width, frameHeight); + + spriteBatch.Draw(texture, position, targetFrame, drawColor, 0f, origin, scale, SpriteEffects.None, 0f); + return false; + } + } + + public class IVDripPlayer : ModPlayer + { + public Dictionary, float> alcoholEffects = new(); + public bool ivDripEquipped; + + public override void ResetEffects() + { + alcoholEffects.Clear(); + ivDripEquipped = false; + } + + public void ApplyAlcoholEffect(Action effect) + { + if (effect == null) + return; + + if (alcoholEffects.ContainsKey(effect)) + alcoholEffects[effect] += 1f; + else + alcoholEffects[effect] = 1f; + } + + public override void PostUpdateEquips() + { + foreach (var effect in alcoholEffects) + { + effect.Key.Invoke(Player, effect.Value); + } } } } diff --git a/Items/Accessories/IVDripOnTheRocks.png b/Items/Accessories/IVDripOnTheRocks.png index b2736f4dac854cc56a87a4381a011fa3a6b38158..5a08694ae729d11d6d082e6cffee51beaf1010cd 100644 GIT binary patch literal 16240 zcma)jc{r4d`}dI68)P?UkX4o{m#Q^+2}!HSA?YHKuE|yfuU@=3^S-@ZDCXX~ziLu!5++oS zIPIlA0OqLu(m3^|zJ>}1i%C;_)bO09`B2lrM0Bj=Tt(`h9Y4c^66?h6(Y1;E*+DO< zu|Y3m)=s|-Vi<&(gs{s!;R1dHm#2`1^Pv=bN3`#^G8Q1SeKOCh67%R~A-c}P#y_63 zHK6kpWNj_v%e<|YCd0MIbvNKsh|FgJuyPM`ofyVDSHpLH!asK+Jdo&b&F7!&oH;Q* z6QYc5UtE#;>Cj(3CvuWd)Z=y-_z_XW4z;^;=pqkb-kE;M7KXih1rA&;(r9D>w(v$$_~FDTL2bbmsR4?GSMK+?YWRu)muo-k zM^#D!KWe2c42EC(Esn>|%Um1_d!w$;0`$aPJWVKSzgIT;cA;2L>cRs|>4Wy{Av#S; zZVwQ-kaJOAm>-hJuxBL1&5k8%8`Cg3)Icix!mEee!lI%@g?FPS`&^#8Uz0K#wLK(M zsnj`;1zUlQ?_Mi0$oHUY+ubT#&6GtIm%eeoY?%4DWWcG^qFRwusZFi@ic3R?)xzJ_ z_kBLk2pf+mBG-GBMoNkrz+VYi+bRYt07Z~EfT zptXK)dj0~+&}p)mLiR~^+BF~VPbe1SOgBHO_VZz=RF4KVjgNMdFE&LY3Y)h8@Km!wVFf}F$AhtVE`oik6H zxL)7N>7q98z3ZTI1tRe>;MN~jyL2^9A&(ykhWhjT?~{M*ypQFh46ZB;5<&aMlG-X8)ir7mjY+)rjf*hATv+FK|To^raag0+OS*%*% zw=(8n%OAlfn_@)F)Zmr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ace CalamityMod.Items return false; } // IV Drip tooltip FX - if (line.Mod == "Terraria" && item.type == ModContent.ItemType() && line.Name == "Tooltip4") + if (line.Mod == "Terraria" && item.type == ModContent.ItemType() && line.Name == "Tooltip6") { Vector2 basePosition = new Vector2(line.X, line.Y); diff --git a/Items/Potions/Alcohol/BloodyMary.cs b/Items/Potions/Alcohol/BloodyMary.cs index 6dd7d3f933..61c2565fa4 100644 --- a/Items/Potions/Alcohol/BloodyMary.cs +++ b/Items/Potions/Alcohol/BloodyMary.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,10 +10,19 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class BloodyMary : ModItem, ILocalizedModType + public class BloodyMary : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; + public AlcoholType AlcoholVariant => AlcoholType.BloodyMary; + + public Action AlcoholEffect => ApplyBloodyMaryEffect; + + private static void ApplyBloodyMaryEffect(Player player, float intensity) + { + // out of order 20 defense + } + public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/CaribbeanRum.cs b/Items/Potions/Alcohol/CaribbeanRum.cs index ea3de081cf..258a5602c9 100644 --- a/Items/Potions/Alcohol/CaribbeanRum.cs +++ b/Items/Potions/Alcohol/CaribbeanRum.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,14 +10,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class CaribbeanRum : ModItem, ILocalizedModType + public class CaribbeanRum : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float MoveSpeedBoost = 0.25f; public static float GravityMultiplier = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent(), (1-GravityMultiplier).ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.CaribbeanRum; + public Action AlcoholEffect => ApplyCaribbeanRumEffect; + + private static void ApplyCaribbeanRumEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/CinnamonRoll.cs b/Items/Potions/Alcohol/CinnamonRoll.cs index 990fcb4353..c7766a7976 100644 --- a/Items/Potions/Alcohol/CinnamonRoll.cs +++ b/Items/Potions/Alcohol/CinnamonRoll.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using Microsoft.Xna.Framework; @@ -9,10 +11,17 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class CinnamonRoll : ModItem, ILocalizedModType + public class CinnamonRoll : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; + public AlcoholType AlcoholVariant => AlcoholType.CinnamonRoll; + public Action AlcoholEffect => ApplyCinnamonRollEffect; + + private static void ApplyCinnamonRollEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Everclear.cs b/Items/Potions/Alcohol/Everclear.cs index 3089c42d4d..834b931f27 100644 --- a/Items/Potions/Alcohol/Everclear.cs +++ b/Items/Potions/Alcohol/Everclear.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,7 +10,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Everclear : ModItem, ILocalizedModType + public class Everclear : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; @@ -16,7 +18,14 @@ namespace CalamityMod.Items.Potions.Alcohol public static int RegenLoss = 10; public static float DefenseLossPercent = 0.30f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), RegenLoss.ToRegenPerSecond(), DefenseLossPercent.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Everclear; + public Action AlcoholEffect => ApplyEverclearEffect; + + private static void ApplyEverclearEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/EvergreenGin.cs b/Items/Potions/Alcohol/EvergreenGin.cs index e1b4a1fa07..9771a8cba5 100644 --- a/Items/Potions/Alcohol/EvergreenGin.cs +++ b/Items/Potions/Alcohol/EvergreenGin.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,14 +10,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class EvergreenGin : ModItem, ILocalizedModType + public class EvergreenGin : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.EvergreenGin; + public Action AlcoholEffect => ApplyEvergreenGinEffect; + + private static void ApplyEvergreenGinEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Fireball.cs b/Items/Potions/Alcohol/Fireball.cs index 8fcea00497..fd004ef6e5 100644 --- a/Items/Potions/Alcohol/Fireball.cs +++ b/Items/Potions/Alcohol/Fireball.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,14 +10,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Fireball : ModItem, ILocalizedModType + public class Fireball : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Fireball; + public Action AlcoholEffect => ApplyFireballEffect; + + private static void ApplyFireballEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/GrapeBeer.cs b/Items/Potions/Alcohol/GrapeBeer.cs index 1fcd4d64cf..48b337c4a1 100644 --- a/Items/Potions/Alcohol/GrapeBeer.cs +++ b/Items/Potions/Alcohol/GrapeBeer.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,13 +10,20 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class GrapeBeer : ModItem, ILocalizedModType + public class GrapeBeer : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float CritLoss = 50; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(CritLoss); + public AlcoholType AlcoholVariant => AlcoholType.GrapeBeer; + public Action AlcoholEffect => ApplyGrapeBeerEffect; + + private static void ApplyGrapeBeerEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Manhattan.cs b/Items/Potions/Alcohol/Manhattan.cs index b2b338a0b3..ead35efda6 100644 --- a/Items/Potions/Alcohol/Manhattan.cs +++ b/Items/Potions/Alcohol/Manhattan.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using Microsoft.Xna.Framework; @@ -9,14 +11,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Manhattan : ModItem, ILocalizedModType + public class Manhattan : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Manhattan; + public Action AlcoholEffect => ApplyManhattanEffect; + + private static void ApplyManhattanEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Margarita.cs b/Items/Potions/Alcohol/Margarita.cs index 4df44ae8fb..4bd302caff 100644 --- a/Items/Potions/Alcohol/Margarita.cs +++ b/Items/Potions/Alcohol/Margarita.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,7 +10,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Margarita : ModItem, ILocalizedModType + public class Margarita : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; @@ -16,7 +18,14 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DebuffLoss = 0.5f; public static int MinuteDuration = 3; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DebuffLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Margarita; + public Action AlcoholEffect => ApplyMargaritaEffect; + + private static void ApplyMargaritaEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Moonshine.cs b/Items/Potions/Alcohol/Moonshine.cs index fd89995259..2ef48293cd 100644 --- a/Items/Potions/Alcohol/Moonshine.cs +++ b/Items/Potions/Alcohol/Moonshine.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,13 +10,20 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Moonshine : ModItem, ILocalizedModType + public class Moonshine : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float MaxLifePercentBoost = 0.33f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxLifePercentBoost.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Moonshine; + public Action AlcoholEffect => ApplyMoonshineEffect; + + private static void ApplyMoonshineEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/MoscowMule.cs b/Items/Potions/Alcohol/MoscowMule.cs index 69406883aa..143acbec8b 100644 --- a/Items/Potions/Alcohol/MoscowMule.cs +++ b/Items/Potions/Alcohol/MoscowMule.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using Microsoft.Xna.Framework; @@ -9,13 +11,20 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class MoscowMule : ModItem, ILocalizedModType + public class MoscowMule : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float KnockbackBoost = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(KnockbackBoost.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.MoscowMule; + public Action AlcoholEffect => ApplyMoscowMuleEffect; + + private static void ApplyMoscowMuleEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/OldFashioned.cs b/Items/Potions/Alcohol/OldFashioned.cs index 802234bc9d..ad7ca8b749 100644 --- a/Items/Potions/Alcohol/OldFashioned.cs +++ b/Items/Potions/Alcohol/OldFashioned.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,14 +10,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class OldFashioned : ModItem, ILocalizedModType + public class OldFashioned : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static readonly float DamageBoostMultiplier = 1.25f; public static readonly float DamageReductionMultiplier = 0.75f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DamageBoostMultiplier).ToString("N2"), (DamageReductionMultiplier).ToString("N2")); + public AlcoholType AlcoholVariant => AlcoholType.OldFashioned; + public Action AlcoholEffect => ApplyOldFashionedEffect; + + private static void ApplyOldFashionedEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/PurpleHaze.cs b/Items/Potions/Alcohol/PurpleHaze.cs index 4c7792e387..7c8962c8bb 100644 --- a/Items/Potions/Alcohol/PurpleHaze.cs +++ b/Items/Potions/Alcohol/PurpleHaze.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -9,7 +11,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { [LegacyName("FabsolsVodka")] - public class PurpleHaze : ModItem, ILocalizedModType + public class PurpleHaze : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; @@ -17,7 +19,14 @@ namespace CalamityMod.Items.Potions.Alcohol public static float StealthDamageLoss = 0.25f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(),StealthDamageLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.PurpleHaze; + public Action AlcoholEffect => ApplyPurpleHazeEffect; + + private static void ApplyPurpleHazeEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/RedWine.cs b/Items/Potions/Alcohol/RedWine.cs index f0314cc7f1..3f3cbd82c7 100644 --- a/Items/Potions/Alcohol/RedWine.cs +++ b/Items/Potions/Alcohol/RedWine.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Potions.Food; using Microsoft.Xna.Framework; @@ -9,14 +11,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class RedWine : ModItem, ILocalizedModType + public class RedWine : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float VerticalSpeedBoost = 0.1f; public static float FlightTimeLoss = 0.25f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(VerticalSpeedBoost.ToPercent(), FlightTimeLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.RedWine; + public Action AlcoholEffect => ApplyRedWineEffect; + + private static void ApplyRedWineEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Rum.cs b/Items/Potions/Alcohol/Rum.cs index e1b83237a8..89139fd95f 100644 --- a/Items/Potions/Alcohol/Rum.cs +++ b/Items/Potions/Alcohol/Rum.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,14 +10,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Rum : ModItem, ILocalizedModType + public class Rum : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float NonMinionBoost = 1.15f; public static float MinionBoost = 0.85f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((NonMinionBoost-1).ToPercent(), (1- MinionBoost).ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Rum; + public Action AlcoholEffect => ApplyRumEffect; + + private static void ApplyRumEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Screwdriver.cs b/Items/Potions/Alcohol/Screwdriver.cs index 65c071fa43..72ad47c567 100644 --- a/Items/Potions/Alcohol/Screwdriver.cs +++ b/Items/Potions/Alcohol/Screwdriver.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using Microsoft.Xna.Framework; @@ -9,14 +11,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Screwdriver : ModItem, ILocalizedModType + public class Screwdriver : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Screwdriver; + public Action AlcoholEffect => ApplyScrewdriverEffect; + + private static void ApplyScrewdriverEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/StarBeamRye.cs b/Items/Potions/Alcohol/StarBeamRye.cs index bbc2dc0f21..9d8c5b0dce 100644 --- a/Items/Potions/Alcohol/StarBeamRye.cs +++ b/Items/Potions/Alcohol/StarBeamRye.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,14 +10,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class StarBeamRye : ModItem, ILocalizedModType + public class StarBeamRye : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float MagicDmgMult = 0.9f; public static int ManaRegenBoost = 30; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MagicDmgMult); + public AlcoholType AlcoholVariant => AlcoholType.StarBeamRye; + public Action AlcoholEffect => ApplyStarBeamRyeEffect; + + private static void ApplyStarBeamRyeEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Tequila.cs b/Items/Potions/Alcohol/Tequila.cs index b9d4df742e..0a2e378642 100644 --- a/Items/Potions/Alcohol/Tequila.cs +++ b/Items/Potions/Alcohol/Tequila.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,7 +10,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Tequila : ModItem, ILocalizedModType + public class Tequila : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; @@ -16,7 +18,14 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Tequila; + public Action AlcoholEffect => ApplyTequilaEffect; + + private static void ApplyTequilaEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/TequilaSunrise.cs b/Items/Potions/Alcohol/TequilaSunrise.cs index 2e04f06f82..391700ab65 100644 --- a/Items/Potions/Alcohol/TequilaSunrise.cs +++ b/Items/Potions/Alcohol/TequilaSunrise.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using Microsoft.Xna.Framework; @@ -9,13 +11,20 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class TequilaSunrise : ModItem, ILocalizedModType + public class TequilaSunrise : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float DoTMultiplier = 1.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DoTMultiplier-1).ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.TequilaSunrise; + public Action AlcoholEffect => ApplyTequilaSunriseEffect; + + private static void ApplyTequilaSunriseEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Vodka.cs b/Items/Potions/Alcohol/Vodka.cs index ca404e6e3c..cc11b6c514 100644 --- a/Items/Potions/Alcohol/Vodka.cs +++ b/Items/Potions/Alcohol/Vodka.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using Microsoft.Xna.Framework; @@ -9,14 +11,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Vodka : ModItem, ILocalizedModType + public class Vodka : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float DebuffBoost = 0.25f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Vodka; + public Action AlcoholEffect => ApplyVodkaEffect; + + private static void ApplyVodkaEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Whiskey.cs b/Items/Potions/Alcohol/Whiskey.cs index 8affbb3282..79b9c53d76 100644 --- a/Items/Potions/Alcohol/Whiskey.cs +++ b/Items/Potions/Alcohol/Whiskey.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; @@ -8,7 +10,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class Whiskey : ModItem, ILocalizedModType + public class Whiskey : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; @@ -17,7 +19,14 @@ namespace CalamityMod.Items.Potions.Alcohol public static float TimeToDischarge = 600; public static float TimeToRecharge = 300; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinDamageBoost.ToPercent(), MaxDamageBoost.ToPercent(), (TimeToDischarge/60).ToString("0.##"), (TimeToRecharge/60).ToString("0.##")); + public AlcoholType AlcoholVariant => AlcoholType.Whiskey; + public Action AlcoholEffect => ApplyWhiskeyEffect; + + private static void ApplyWhiskeyEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/WhiteWine.cs b/Items/Potions/Alcohol/WhiteWine.cs index 32890d06ad..1008e81213 100644 --- a/Items/Potions/Alcohol/WhiteWine.cs +++ b/Items/Potions/Alcohol/WhiteWine.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.Alcohol; +using System; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using Microsoft.Xna.Framework; @@ -10,14 +12,21 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class WhiteWine : ModItem, ILocalizedModType + public class WhiteWine : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; public static float FlightTimeRecoveryAmount = 0.66f; public static float FlightTimeLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlightTimeLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.WhiteWine; + public Action AlcoholEffect => ApplyWhiteWineEffect; + + private static void ApplyWhiteWineEffect(Player player, float intensity) + { + // out of order 20 defense + } public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index e0d5223d76..5259872ae9 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1026,12 +1026,15 @@ IVDripOnTheRocks: { DisplayName: IV Drip on the Rocks Tooltip: ''' - Multiplies most non-weapon, non-debuff damage by {0}x - Multiplies all weapon damage by {1}x + [EFFECT] + [NAME] Counts as an alcohol stack toward Alcohol Poisoning + Drinking the same type of alcohol as in the IV drip does not contribute to Alcohol Poisoning {$Common.AlcoholWarning} + [c/aaaaaa:Shift- this item in your inventory to empty its contents] '(drunken mumbling)' ''' + Empty: The drip is currently empty. } JellyChargedBattery: { From ec2a5fb2349c5181f14718ecb2355d8e2f3af353 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Fri, 13 Mar 2026 01:52:19 -0400 Subject: [PATCH 02/28] tidying before making individual effects --- Items/Accessories/IVDripOnTheRocks.cs | 13 ++++++++++--- Projectiles/CalamityGlobalProjectile.cs | 8 +++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Items/Accessories/IVDripOnTheRocks.cs b/Items/Accessories/IVDripOnTheRocks.cs index df1b5fcfdd..a133a81a8d 100644 --- a/Items/Accessories/IVDripOnTheRocks.cs +++ b/Items/Accessories/IVDripOnTheRocks.cs @@ -55,8 +55,6 @@ namespace CalamityMod.Items.Accessories public int containedAlcoholID = -1; public AlcoholType currentAlcoholType = AlcoholType.None; public new string LocalizationCategory => "Items.Accessories"; - public static readonly float DamageBoostMultiplier = 1.25f; // (only exists right now so that it compiles, leave it be) - public static readonly float DamageReductionMultiplier = 0.75f; // (only exists right now so that it compiles, leave it be) public override void SetStaticDefaults() { @@ -156,8 +154,9 @@ namespace CalamityMod.Items.Accessories if (containedAlcoholID != -1) { - Item alcoholItem = new Item(containedAlcoholID); + dripPlayer.currentAlcohol = currentAlcoholType; + Item alcoholItem = new Item(containedAlcoholID); if (alcoholItem.ModItem is IAlcoholItem alcohol) dripPlayer.ApplyAlcoholEffect(alcohol.AlcoholEffect); } @@ -213,11 +212,19 @@ namespace CalamityMod.Items.Accessories { public Dictionary, float> alcoholEffects = new(); public bool ivDripEquipped; + public AlcoholType currentAlcohol = AlcoholType.None; + + // would otherwise be spamming these checks manually any time another class wants to check for if IV drip has a certain alcohol filled + public bool HasAlcohol(AlcoholType type) + { + return ivDripEquipped && currentAlcohol == type; + } public override void ResetEffects() { alcoholEffects.Clear(); ivDripEquipped = false; + currentAlcohol = AlcoholType.None; } public void ApplyAlcoholEffect(Action effect) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 30b2834719..260bac36f1 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -4602,8 +4602,10 @@ namespace CalamityMod.Projectiles // IV Drip on the Rocks inherits the same logic as Old Fashioned if (modPlayer.oldFashioned && buffedByOldFashioned.HasValue) modifiers.SourceDamage *= buffedByOldFashioned.Value ? OldFashioned.DamageBoostMultiplier : OldFashioned.DamageReductionMultiplier; - if (modPlayer.ivDrip && buffedByOldFashioned.HasValue) - modifiers.SourceDamage *= buffedByOldFashioned.Value ? IVDripOnTheRocks.DamageBoostMultiplier : IVDripOnTheRocks.DamageReductionMultiplier; + + var dripPlayer = player.GetModPlayer(); + if (dripPlayer.HasAlcohol(AlcoholType.OldFashioned) && buffedByOldFashioned.HasValue) + modifiers.SourceDamage *= buffedByOldFashioned.Value ? OldFashioned.DamageBoostMultiplier : OldFashioned.DamageReductionMultiplier; if (modPlayer.rum && projectile.DamageType.CountsAsClass(DamageClass.Summon)) { @@ -4755,7 +4757,7 @@ namespace CalamityMod.Projectiles { var player = Main.player[projectile.owner]; float burnRatio = (-player.statMana / 100) * ChaosStone.DamageMultPer100Mana; - target.Calamity().manaBurn += damageDone * burnRatio * (player.Calamity().oldFashioned ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().ivDrip ? IVDripOnTheRocks.DamageBoostMultiplier : 1) * (player.Calamity().vodka ? 1+Vodka.DebuffBoost : 1); + target.Calamity().manaBurn += damageDone * burnRatio * (player.Calamity().oldFashioned ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().ivDrip ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().vodka ? 1+Vodka.DebuffBoost : 1); target.Calamity().playerManaBurnIntensity = -player.statMana / (float)player.statManaMax2; if (Main.netMode != NetmodeID.SinglePlayer) ManaBurnSyncPacket.Send(target); From 2b1ddc08e95a683073e6ea49368486f1721fde97 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Fri, 13 Mar 2026 01:59:52 -0400 Subject: [PATCH 03/28] tidying 2 --- Items/CalamityGlobalItem.cs | 6 ++++-- Projectiles/CalamityGlobalProjectile.cs | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 62313a8039..83f02bb645 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -898,8 +898,10 @@ namespace CalamityMod.Items // This assume all items with a damage hit is a weapon. There appears to be no edge cases for this thus far if (player.Calamity().oldFashioned) modifiers.SourceDamage *= OldFashioned.DamageReductionMultiplier; - if (player.Calamity().ivDrip) - modifiers.SourceDamage *= IVDripOnTheRocks.DamageReductionMultiplier; + + var dripPlayer = player.GetModPlayer(); + if (dripPlayer.HasAlcohol(AlcoholType.OldFashioned)) + modifiers.SourceDamage *= OldFashioned.DamageReductionMultiplier; } public override void OnHitNPC(Item item, Player player, NPC target, NPC.HitInfo hit, int damageDone) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 260bac36f1..4873165476 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -4757,7 +4757,8 @@ namespace CalamityMod.Projectiles { var player = Main.player[projectile.owner]; float burnRatio = (-player.statMana / 100) * ChaosStone.DamageMultPer100Mana; - target.Calamity().manaBurn += damageDone * burnRatio * (player.Calamity().oldFashioned ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().ivDrip ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().vodka ? 1+Vodka.DebuffBoost : 1); + var dripPlayer = player.GetModPlayer(); + target.Calamity().manaBurn += damageDone * burnRatio * (dripPlayer.HasAlcohol(AlcoholType.OldFashioned) ? OldFashioned.DamageBoostMultiplier : 1) * (dripPlayer.HasAlcohol(AlcoholType.OldFashioned) ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().vodka ? 1+Vodka.DebuffBoost : 1); target.Calamity().playerManaBurnIntensity = -player.statMana / (float)player.statManaMax2; if (Main.netMode != NetmodeID.SinglePlayer) ManaBurnSyncPacket.Send(target); From fd5fea1ec110da13de8bbc0df4060721d7be58a7 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Sun, 15 Mar 2026 06:10:37 -0400 Subject: [PATCH 04/28] predominantly tooltip changes --- CalPlayer/CalamityPlayerLifeRegen.cs | 10 ++ Items/Accessories/IVDripOnTheRocks.cs | 12 +- Items/Potions/Alcohol/BloodyMary.cs | 3 + Items/Potions/Alcohol/CaribbeanRum.cs | 2 + Items/Potions/Alcohol/CinnamonRoll.cs | 2 + Items/Potions/Alcohol/Everclear.cs | 1 + Items/Potions/Alcohol/EvergreenGin.cs | 1 + Items/Potions/Alcohol/Fireball.cs | 2 + Items/Potions/Alcohol/GrapeBeer.cs | 1 + Items/Potions/Alcohol/Manhattan.cs | 1 + Items/Potions/Alcohol/Margarita.cs | 1 + Items/Potions/Alcohol/Moonshine.cs | 1 + Items/Potions/Alcohol/MoscowMule.cs | 3 +- Items/Potions/Alcohol/OldFashioned.cs | 3 +- Items/Potions/Alcohol/PurpleHaze.cs | 3 +- Items/Potions/Alcohol/RedWine.cs | 2 + Items/Potions/Alcohol/Rum.cs | 1 + Items/Potions/Alcohol/Screwdriver.cs | 1 + Items/Potions/Alcohol/StarBeamRye.cs | 1 + Items/Potions/Alcohol/Tequila.cs | 1 + Items/Potions/Alcohol/TequilaSunrise.cs | 3 +- Items/Potions/Alcohol/Vodka.cs | 1 + Items/Potions/Alcohol/Whiskey.cs | 4 + Items/Potions/Alcohol/WhiteWine.cs | 1 + .../en-US/Mods.CalamityMod.Condition.hjson | 1 + .../Mods.CalamityMod.Items.Potions.hjson | 115 ++++++++++++++++++ Projectiles/CalamityGlobalProjectile.cs | 2 +- 27 files changed, 171 insertions(+), 8 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index b181b14c72..59c007c5bf 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -446,6 +446,16 @@ namespace CalamityMod.CalPlayer Player.lifeRegenTime += 1800; } } + + var dripPlayer = Player.GetModPlayer(); + if (dripPlayer.HasAlcohol(AlcoholType.TequilaSunrise)) + { + if (hadLifeRegenHinderingDebuff && !hasLifeRegenHinderingDebuff) + { + Player.lifeRegenTime += 1800; + } + } + #endregion // During Silva revive or God Slayer dash, all negative life regen is canceled diff --git a/Items/Accessories/IVDripOnTheRocks.cs b/Items/Accessories/IVDripOnTheRocks.cs index a133a81a8d..19a81964cb 100644 --- a/Items/Accessories/IVDripOnTheRocks.cs +++ b/Items/Accessories/IVDripOnTheRocks.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using CalamityMod.Items.Materials; +using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Rarities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -48,6 +49,8 @@ namespace CalamityMod.Items.Accessories { Action AlcoholEffect { get; } AlcoholType AlcoholVariant { get; } + LocalizedText DripEffectText { get; } + } public class IVDripOnTheRocks : ModItem, ILocalizedModType @@ -181,9 +184,12 @@ namespace CalamityMod.Items.Accessories if (effectLine != null) { - string effectText = Lang.GetTooltip(containedAlcoholID).ToString(); - effectLine.Text = effectText; - effectLine.OverrideColor = Color.White; + Item alcoholItem = new Item(containedAlcoholID); + + if (alcoholItem.ModItem is IAlcoholItem alcohol) + { + effectLine.Text = alcohol.DripEffectText.Value; + } } if (nameLine != null) diff --git a/Items/Potions/Alcohol/BloodyMary.cs b/Items/Potions/Alcohol/BloodyMary.cs index 61c2565fa4..6aa89ec252 100644 --- a/Items/Potions/Alcohol/BloodyMary.cs +++ b/Items/Potions/Alcohol/BloodyMary.cs @@ -14,6 +14,9 @@ namespace CalamityMod.Items.Potions.Alcohol { public new string LocalizationCategory => "Items.Potions"; + public static float PierceDamageMultiplier = 0.66f; + public override LocalizedText Tooltip => base.Tooltip; + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.BloodyMary.DripEffect"); public AlcoholType AlcoholVariant => AlcoholType.BloodyMary; public Action AlcoholEffect => ApplyBloodyMaryEffect; diff --git a/Items/Potions/Alcohol/CaribbeanRum.cs b/Items/Potions/Alcohol/CaribbeanRum.cs index 258a5602c9..aea140b137 100644 --- a/Items/Potions/Alcohol/CaribbeanRum.cs +++ b/Items/Potions/Alcohol/CaribbeanRum.cs @@ -17,6 +17,8 @@ namespace CalamityMod.Items.Potions.Alcohol public static float MoveSpeedBoost = 0.25f; public static float GravityMultiplier = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent(), (1-GravityMultiplier).ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.CaribbeanRum.DripEffect").WithFormatArgs(MoveSpeedBoost.ToPercent(), (1 - GravityMultiplier).ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.CaribbeanRum; public Action AlcoholEffect => ApplyCaribbeanRumEffect; diff --git a/Items/Potions/Alcohol/CinnamonRoll.cs b/Items/Potions/Alcohol/CinnamonRoll.cs index c7766a7976..9dca7e28a9 100644 --- a/Items/Potions/Alcohol/CinnamonRoll.cs +++ b/Items/Potions/Alcohol/CinnamonRoll.cs @@ -16,6 +16,8 @@ namespace CalamityMod.Items.Potions.Alcohol public new string LocalizationCategory => "Items.Potions"; public AlcoholType AlcoholVariant => AlcoholType.CinnamonRoll; + public override LocalizedText Tooltip => base.Tooltip; + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.CinnamonRoll.DripEffect"); public Action AlcoholEffect => ApplyCinnamonRollEffect; private static void ApplyCinnamonRollEffect(Player player, float intensity) diff --git a/Items/Potions/Alcohol/Everclear.cs b/Items/Potions/Alcohol/Everclear.cs index 834b931f27..21fa080418 100644 --- a/Items/Potions/Alcohol/Everclear.cs +++ b/Items/Potions/Alcohol/Everclear.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static int RegenLoss = 10; public static float DefenseLossPercent = 0.30f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), RegenLoss.ToRegenPerSecond(), DefenseLossPercent.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.StarBeamRye.DripEffect").WithFormatArgs(DamageBoost.ToPercent(), RegenLoss.ToRegenPerSecond(), DefenseLossPercent.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Everclear; public Action AlcoholEffect => ApplyEverclearEffect; diff --git a/Items/Potions/Alcohol/EvergreenGin.cs b/Items/Potions/Alcohol/EvergreenGin.cs index 9771a8cba5..e098e4276f 100644 --- a/Items/Potions/Alcohol/EvergreenGin.cs +++ b/Items/Potions/Alcohol/EvergreenGin.cs @@ -17,6 +17,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.EvergreenGin.DripEffect").WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.EvergreenGin; public Action AlcoholEffect => ApplyEvergreenGinEffect; diff --git a/Items/Potions/Alcohol/Fireball.cs b/Items/Potions/Alcohol/Fireball.cs index fd004ef6e5..a34b374fc5 100644 --- a/Items/Potions/Alcohol/Fireball.cs +++ b/Items/Potions/Alcohol/Fireball.cs @@ -17,6 +17,8 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Fireball.DripEffect").WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.Fireball; public Action AlcoholEffect => ApplyFireballEffect; diff --git a/Items/Potions/Alcohol/GrapeBeer.cs b/Items/Potions/Alcohol/GrapeBeer.cs index 48b337c4a1..162d0918d6 100644 --- a/Items/Potions/Alcohol/GrapeBeer.cs +++ b/Items/Potions/Alcohol/GrapeBeer.cs @@ -16,6 +16,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float CritLoss = 50; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(CritLoss); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.GrapeBeer.DripEffect").WithFormatArgs(CritLoss); public AlcoholType AlcoholVariant => AlcoholType.GrapeBeer; public Action AlcoholEffect => ApplyGrapeBeerEffect; diff --git a/Items/Potions/Alcohol/Manhattan.cs b/Items/Potions/Alcohol/Manhattan.cs index ead35efda6..794fb4e3b4 100644 --- a/Items/Potions/Alcohol/Manhattan.cs +++ b/Items/Potions/Alcohol/Manhattan.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Manhattan.DripEffect").WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Manhattan; public Action AlcoholEffect => ApplyManhattanEffect; diff --git a/Items/Potions/Alcohol/Margarita.cs b/Items/Potions/Alcohol/Margarita.cs index 4bd302caff..a0938a76ce 100644 --- a/Items/Potions/Alcohol/Margarita.cs +++ b/Items/Potions/Alcohol/Margarita.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DebuffLoss = 0.5f; public static int MinuteDuration = 3; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DebuffLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Margarita.DripEffect").WithFormatArgs(DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Margarita; public Action AlcoholEffect => ApplyMargaritaEffect; diff --git a/Items/Potions/Alcohol/Moonshine.cs b/Items/Potions/Alcohol/Moonshine.cs index 2ef48293cd..fbac9494d2 100644 --- a/Items/Potions/Alcohol/Moonshine.cs +++ b/Items/Potions/Alcohol/Moonshine.cs @@ -16,6 +16,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float MaxLifePercentBoost = 0.33f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxLifePercentBoost.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Moonshine.DripEffect").WithFormatArgs(MaxLifePercentBoost.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Moonshine; public Action AlcoholEffect => ApplyMoonshineEffect; diff --git a/Items/Potions/Alcohol/MoscowMule.cs b/Items/Potions/Alcohol/MoscowMule.cs index 143acbec8b..1bc0ebca8e 100644 --- a/Items/Potions/Alcohol/MoscowMule.cs +++ b/Items/Potions/Alcohol/MoscowMule.cs @@ -14,9 +14,10 @@ namespace CalamityMod.Items.Potions.Alcohol public class MoscowMule : ModItem, ILocalizedModType, IAlcoholItem { public new string LocalizationCategory => "Items.Potions"; - public static float KnockbackBoost = 0.5f; + public static float PierceDamageMultiplier = 0.7f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(KnockbackBoost.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.MoscowMule.DripEffect").WithFormatArgs(KnockbackBoost.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.MoscowMule; public Action AlcoholEffect => ApplyMoscowMuleEffect; diff --git a/Items/Potions/Alcohol/OldFashioned.cs b/Items/Potions/Alcohol/OldFashioned.cs index ad7ca8b749..78c1967e83 100644 --- a/Items/Potions/Alcohol/OldFashioned.cs +++ b/Items/Potions/Alcohol/OldFashioned.cs @@ -17,13 +17,14 @@ namespace CalamityMod.Items.Potions.Alcohol public static readonly float DamageBoostMultiplier = 1.25f; public static readonly float DamageReductionMultiplier = 0.75f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DamageBoostMultiplier).ToString("N2"), (DamageReductionMultiplier).ToString("N2")); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.OldFashioned.DripEffect").WithFormatArgs(DamageBoostMultiplier.ToString("N2"), DamageReductionMultiplier.ToString("N2")); public AlcoholType AlcoholVariant => AlcoholType.OldFashioned; public Action AlcoholEffect => ApplyOldFashionedEffect; private static void ApplyOldFashionedEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityGlobalProjectile } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/PurpleHaze.cs b/Items/Potions/Alcohol/PurpleHaze.cs index 7c8962c8bb..6da2d0cd2a 100644 --- a/Items/Potions/Alcohol/PurpleHaze.cs +++ b/Items/Potions/Alcohol/PurpleHaze.cs @@ -17,8 +17,9 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DamageBoost = 0.25f; public static float StealthDamageLoss = 0.25f; - public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(),StealthDamageLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.PurpleHaze.DripEffect").WithFormatArgs(DamageBoost.ToPercent(), StealthDamageLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.PurpleHaze; public Action AlcoholEffect => ApplyPurpleHazeEffect; diff --git a/Items/Potions/Alcohol/RedWine.cs b/Items/Potions/Alcohol/RedWine.cs index 3f3cbd82c7..5fe03db326 100644 --- a/Items/Potions/Alcohol/RedWine.cs +++ b/Items/Potions/Alcohol/RedWine.cs @@ -18,6 +18,8 @@ namespace CalamityMod.Items.Potions.Alcohol public static float VerticalSpeedBoost = 0.1f; public static float FlightTimeLoss = 0.25f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(VerticalSpeedBoost.ToPercent(), FlightTimeLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.RedWine.DripEffect").WithFormatArgs(VerticalSpeedBoost.ToPercent(), FlightTimeLoss.ToPercent()); + public AlcoholType AlcoholVariant => AlcoholType.RedWine; public Action AlcoholEffect => ApplyRedWineEffect; diff --git a/Items/Potions/Alcohol/Rum.cs b/Items/Potions/Alcohol/Rum.cs index 89139fd95f..8069de8cc8 100644 --- a/Items/Potions/Alcohol/Rum.cs +++ b/Items/Potions/Alcohol/Rum.cs @@ -17,6 +17,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float NonMinionBoost = 1.15f; public static float MinionBoost = 0.85f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((NonMinionBoost-1).ToPercent(), (1- MinionBoost).ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Rum.DripEffect").WithFormatArgs((NonMinionBoost - 1).ToPercent(), (1 - MinionBoost).ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Rum; public Action AlcoholEffect => ApplyRumEffect; diff --git a/Items/Potions/Alcohol/Screwdriver.cs b/Items/Potions/Alcohol/Screwdriver.cs index 72ad47c567..13aed890f8 100644 --- a/Items/Potions/Alcohol/Screwdriver.cs +++ b/Items/Potions/Alcohol/Screwdriver.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Screwdriver.DripEffect").WithFormatArgs(DebuffBoost.ToString("N2"), DebuffLoss.ToString("N2")); public AlcoholType AlcoholVariant => AlcoholType.Screwdriver; public Action AlcoholEffect => ApplyScrewdriverEffect; diff --git a/Items/Potions/Alcohol/StarBeamRye.cs b/Items/Potions/Alcohol/StarBeamRye.cs index 9d8c5b0dce..3df2d802a0 100644 --- a/Items/Potions/Alcohol/StarBeamRye.cs +++ b/Items/Potions/Alcohol/StarBeamRye.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static int ManaRegenBoost = 30; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MagicDmgMult); public AlcoholType AlcoholVariant => AlcoholType.StarBeamRye; + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.StarBeamRye.DripEffect"); public Action AlcoholEffect => ApplyStarBeamRyeEffect; diff --git a/Items/Potions/Alcohol/Tequila.cs b/Items/Potions/Alcohol/Tequila.cs index 0a2e378642..6dec967956 100644 --- a/Items/Potions/Alcohol/Tequila.cs +++ b/Items/Potions/Alcohol/Tequila.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DebuffBoost = 0.5f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Tequila.DripEffect").WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Tequila; public Action AlcoholEffect => ApplyTequilaEffect; diff --git a/Items/Potions/Alcohol/TequilaSunrise.cs b/Items/Potions/Alcohol/TequilaSunrise.cs index 391700ab65..68d53be9df 100644 --- a/Items/Potions/Alcohol/TequilaSunrise.cs +++ b/Items/Potions/Alcohol/TequilaSunrise.cs @@ -17,13 +17,14 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DoTMultiplier = 1.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DoTMultiplier-1).ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.TequilaSunrise.DripEffect").WithFormatArgs((DoTMultiplier-1).ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.TequilaSunrise; public Action AlcoholEffect => ApplyTequilaSunriseEffect; private static void ApplyTequilaSunriseEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayerLifeRegen } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/Vodka.cs b/Items/Potions/Alcohol/Vodka.cs index cc11b6c514..1d699f8fa2 100644 --- a/Items/Potions/Alcohol/Vodka.cs +++ b/Items/Potions/Alcohol/Vodka.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float DebuffBoost = 0.25f; public static float DebuffLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Vodka.DripEffect").WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Vodka; public Action AlcoholEffect => ApplyVodkaEffect; diff --git a/Items/Potions/Alcohol/Whiskey.cs b/Items/Potions/Alcohol/Whiskey.cs index 79b9c53d76..ba19be7401 100644 --- a/Items/Potions/Alcohol/Whiskey.cs +++ b/Items/Potions/Alcohol/Whiskey.cs @@ -18,7 +18,11 @@ namespace CalamityMod.Items.Potions.Alcohol public static float MinDamageBoost = -0.15f; public static float TimeToDischarge = 600; public static float TimeToRecharge = 300; + public static float IVDripDamageCeilingGain = 0.3f; + public static float IVDripDamageFloorReduction = -0.3f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinDamageBoost.ToPercent(), MaxDamageBoost.ToPercent(), (TimeToDischarge/60).ToString("0.##"), (TimeToRecharge/60).ToString("0.##")); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Whiskey.DripEffect").WithFormatArgs(MinDamageBoost.ToPercent(), MaxDamageBoost.ToPercent(), (TimeToDischarge / 60).ToString("0.##"), (TimeToRecharge / 60).ToString("0.##"), IVDripDamageCeilingGain.ToPercent(), IVDripDamageFloorReduction.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Whiskey; public Action AlcoholEffect => ApplyWhiskeyEffect; diff --git a/Items/Potions/Alcohol/WhiteWine.cs b/Items/Potions/Alcohol/WhiteWine.cs index 1008e81213..f4c1053f3a 100644 --- a/Items/Potions/Alcohol/WhiteWine.cs +++ b/Items/Potions/Alcohol/WhiteWine.cs @@ -19,6 +19,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float FlightTimeRecoveryAmount = 0.66f; public static float FlightTimeLoss = 0.5f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlightTimeLoss.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.WhiteWine.DripEffect").WithFormatArgs(FlightTimeLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.WhiteWine; public Action AlcoholEffect => ApplyWhiteWineEffect; diff --git a/Localization/en-US/Mods.CalamityMod.Condition.hjson b/Localization/en-US/Mods.CalamityMod.Condition.hjson index b757a152d4..7655748378 100644 --- a/Localization/en-US/Mods.CalamityMod.Condition.hjson +++ b/Localization/en-US/Mods.CalamityMod.Condition.hjson @@ -47,6 +47,7 @@ Drops: { Drops if Providence was defeated only with the [i:CalamityMod/ProfanedSoulArtifact] Profaned Soul Artifact {$Bestiary_ItemDropConditions.IsExpert} ''' + TrasherKill: Mods.CalamityMod.Condition.Drops.TrasherKill } // Other conditions diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index a4c20d91d5..cf828d87e3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -166,6 +166,8 @@ ZergPotion: { Tooltip: Vastly increases enemy spawn rate } +// Alcohols + BloodyMary: { DisplayName: Bloody Mary Tooltip: @@ -174,6 +176,12 @@ BloodyMary: { Greatly reduces piercing weapon effectiveness {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Increases enemy spawn rates by 7x + Greatly reduces piercing weapon effectiveness + When combined with drinking Bloody Mary straight, enemy spawn rates are increased by 14x total + ''' } CaribbeanRum: { @@ -184,6 +192,11 @@ CaribbeanRum: { Reduces your gravity by {1}% {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Increases move speed by {0}% + Reduces your gravity by {1}% + ''' } CinnamonRoll: { @@ -194,6 +207,11 @@ CinnamonRoll: { Greatly reduces dash distance {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Greatly increases dash speed + Greatly reduces dash distance + ''' } PurpleHaze: { @@ -203,6 +221,11 @@ PurpleHaze: { For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% {$Common.AlcoholWarning} ''' + DripEffect: + ''' + For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% + Greatly reduces dash distance + ''' } Everclear: { @@ -214,6 +237,12 @@ Everclear: { Counts as 2 alcohols for {$Buffs.AlcoholPoisoning.DisplayName} {$Common.AlcoholWarning} ''' + DripEffect: + ''' + {0}% increased damage + Reduces life regen by {1} HP/s and defense by {2}% + When combined with drinking Everclear straight, reduce count for {$Buffs.AlcoholPoisoning.DisplayName} by 1 + ''' } EvergreenGin: { @@ -224,6 +253,11 @@ EvergreenGin: { {1}% decreased Electric and Heat debuff damage {$Common.AlcoholWarning} ''' + DripEffect: + ''' + {0}% increased Water and Sickness debuff damage + {1}% decreased Electric and Heat debuff damage + ''' } Fireball: { @@ -234,6 +268,11 @@ Fireball: { {1}% decreased Sickness debuff damage {$Common.AlcoholWarning} ''' + DripEffect: + ''' + {0}% increased Heat debuff damage + {1}% decreased Sickness debuff damage + ''' } GrapeBeer: { @@ -244,6 +283,12 @@ GrapeBeer: { {0}% reduced critical strike damage {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Bullets, Arrows, Darts, and Rockets gain homing + {0}% reduced critical strike damage + When combined with drinking Grape Beer straight, greatly increases homing range and critical strike damage loss + ''' } Manhattan: { @@ -254,6 +299,11 @@ Manhattan: { {1}% decreased Water debuff damage {$Common.AlcoholWarning} ''' + DripEffect: + ''' + {0}% increased Cold debuff damage + {1}% decreased Water debuff damage + ''' } Margarita: { @@ -264,6 +314,11 @@ Margarita: { Reduces damage of debuffs you inflict by {0}% {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Halves duration of harmful debuffs you receive + Reduces damage of debuffs you inflict by {0}% + ''' } Moonshine: { @@ -275,6 +330,12 @@ Moonshine: { Defense damage takes three times as long to recover {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Increases maximum health by {0}% + Attacks always take at least half your defense worth of defense damage + Defense damage takes three times as long to recover + ''' } MoscowMule: { @@ -285,6 +346,11 @@ MoscowMule: { Reduces the effectiveness of piercing weapons {$Common.AlcoholWarning} ''' + DripEffect: + ''' + {0}% increased knockback, all attacks inflict heavy knockback + Reduces the effectiveness of piercing weapons + ''' } OddMushroom: { @@ -305,6 +371,11 @@ OldFashioned: { Multiplies all weapon damage by {1}x {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Multiplies most non-weapon, non-debuff damage by {0}x + Multiplies all weapon damage by {1}x + ''' } RedWine: { @@ -315,6 +386,11 @@ RedWine: { {1}% reduced flight time {$Common.AlcoholWarning} ''' + DripEffect: + ''' + {0}% increased vertical speed + {1}% reduced flight time + ''' } Rum: { @@ -325,6 +401,11 @@ Rum: { {1}% decreased minion damage {$Common.AlcoholWarning} ''' + DripEffect: + ''' + {0}% increased non-minion summon damage + {1}% decreased minion damage + ''' } Screwdriver: { @@ -335,6 +416,11 @@ Screwdriver: { Greatly reduces damage dealt {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Greatly increases tile and wall placement range and speed + Greatly reduces damage dealt + ''' } StarBeamRye: { @@ -345,6 +431,7 @@ StarBeamRye: { Magic weapons deal {0}x damage {$Common.AlcoholWarning} ''' + DripEffect: Strangely, you feel no different... } Tequila: { @@ -355,6 +442,11 @@ Tequila: { {1}% decreased Cold debuff damage {$Common.AlcoholWarning} ''' + DripEffect: + ''' + {0}% increased Electric debuff damage + {1}% decreased Cold debuff damage + ''' } TequilaSunrise: { @@ -365,6 +457,11 @@ TequilaSunrise: { {0}% increased damage taken from debuffs {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Greatly increases natural life regeneration after suffering a damaging debuff + {0}% increased damage taken from debuffs + ''' } Vodka: { @@ -375,6 +472,11 @@ Vodka: { {1}% decreased elemental debuff damage {$Common.AlcoholWarning} ''' + DripEffect: + ''' + {0}% increased Typeless debuff damage + {1}% decreased elemental debuff damage + ''' } Whiskey: { @@ -387,6 +489,14 @@ Whiskey: { This boost recharges when holding weapons of a different class, taking {3} seconds to fully recharge {$Common.AlcoholWarning} ''' + DripEffect: + ''' + Provides between {0}% and {1}% damage to the held weapon's class + Each class tracks this boost individually + This boost lowers the longer you hold weapons of the same class, taking {2} seconds to fully decay + This boost recharges when holding weapons of a different class, taking {3} seconds to fully recharge + When combined with drinking Whiskey straight, the damage variance becomes {4}% and {5}% + ''' } WhiteWine: { @@ -397,6 +507,11 @@ WhiteWine: { {0}% reduced flight time {$Common.AlcoholWarning} ''' + DripEffect: + ''' + You regain flight time the closer you are to an enemy + {0}% reduced flight time + ''' } // Food diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 4873165476..4373bd7792 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -4620,7 +4620,7 @@ namespace CalamityMod.Projectiles { if (projectile.DamageType == DamageClass.Summon || (PierceResistNPC.exemptProjectiles.Contains(projectile.type) || (PierceResistNPC.singleHitboxExemptProjectiles.ContainsKey(projectile.type) && PierceResistNPC.singleHitboxExemptProjectiles[projectile.type]))) { - modifiers.SourceDamage *= ((modPlayer.moscowMule ? 0.7f : 1f) * (modPlayer.bloodyMary ? 0.33f : 1f)); + modifiers.SourceDamage *= ((modPlayer.moscowMule ? MoscowMule.PierceDamageMultiplier : 1f) * (modPlayer.bloodyMary ? BloodyMary.PierceDamageMultiplier : 1f)); } } if (projectile.type == ProjectileID.JoustingLance || projectile.type == ProjectileID.HallowJoustingLance || projectile.type == ProjectileID.ShadowJoustingLance) From 8ccccffd97b8e7a3aa6d3add9c18a27265ca4d6b Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Sun, 15 Mar 2026 20:38:03 -0400 Subject: [PATCH 05/28] bit of effect logic --- CalPlayer/CalamityPlayerLifeRegen.cs | 3 ++- CalPlayer/CalamityPlayerMiscEffects.cs | 19 ++++++++++++++++--- Items/Accessories/IVDripOnTheRocks.cs | 6 ++++++ Items/Potions/Alcohol/BloodyMary.cs | 4 ++++ NPCs/CalamityGlobalNPC.cs | 13 ++++++++++--- 5 files changed, 38 insertions(+), 7 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 59c007c5bf..e667798497 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -201,7 +201,8 @@ namespace CalamityMod.CalPlayer alcoholPoisonLevel++; if (everclear) totalNegativeLifeRegen += Everclear.RegenLoss; - + if (Player.GetModPlayer().HasAlcohol(AlcoholType.Everclear)) + totalNegativeLifeRegen += Everclear.RegenLoss; // Blanket effect for all alcohols if (alcoholPoisonLevel > 0) { diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 17c9bcf1e9..874396fb37 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -536,6 +536,13 @@ namespace CalamityMod.CalPlayer else if (Player.dashDelay == -1) Player.velocity.X *= 0.8f; } + if (Player.GetModPlayer().HasAlcohol(AlcoholType.CinnamonRoll) && !(Main.getGoodWorld && Main.npc.Any(x => x.active && x.type == ModContent.NPCType()))) + { + if (dashStart) + Player.velocity.X *= 3; + else if (Player.dashDelay == -1) + Player.velocity.X *= 0.8f; + } if (Player.dashDelay == -1) IsFirstDashFrame = false; @@ -3279,7 +3286,7 @@ namespace CalamityMod.CalPlayer #region Other Buff Effects private void OtherBuffEffects() { - + var dripPlayer = Player.GetModPlayer(); if (gravityNormalizer) { Player.buffImmune[BuffID.VortexDebuff] = true; @@ -3475,13 +3482,19 @@ namespace CalamityMod.CalPlayer if (everclear) Player.GetDamage() += Everclear.DamageBoost; - + if (dripPlayer.HasAlcohol(AlcoholType.Everclear)) + Player.GetDamage() += Everclear.DamageBoost; if (caribbeanRum) { Player.gravity *= CaribbeanRum.GravityMultiplier; Player.moveSpeed += CaribbeanRum.MoveSpeedBoost; } + if (dripPlayer.HasAlcohol(AlcoholType.CaribbeanRum)) + { + Player.gravity *= CaribbeanRum.GravityMultiplier; + Player.moveSpeed += CaribbeanRum.MoveSpeedBoost; + } if (starBeamRye) { @@ -3503,7 +3516,7 @@ namespace CalamityMod.CalPlayer } else bonus = 0; - whiteWineTimer += bonus * WhiteWine.FlightTimeRecoveryAmount; + whiteWineTimer += bonus * WhiteWine.FlightTimeRecoveryAmount * (dripPlayer.HasAlcohol(AlcoholType.Everclear) ? 2 : 1); while (whiteWineTimer > 1) { if (Player.wingTime < Player.wingTimeMax) diff --git a/Items/Accessories/IVDripOnTheRocks.cs b/Items/Accessories/IVDripOnTheRocks.cs index 19a81964cb..b10f927934 100644 --- a/Items/Accessories/IVDripOnTheRocks.cs +++ b/Items/Accessories/IVDripOnTheRocks.cs @@ -251,5 +251,11 @@ namespace CalamityMod.Items.Accessories effect.Key.Invoke(Player, effect.Value); } } + + // For specific interactions not handled elsewhere. + public override void UpdateEquips() + { + base.UpdateEquips(); + } } } diff --git a/Items/Potions/Alcohol/BloodyMary.cs b/Items/Potions/Alcohol/BloodyMary.cs index 6aa89ec252..bc4631872a 100644 --- a/Items/Potions/Alcohol/BloodyMary.cs +++ b/Items/Potions/Alcohol/BloodyMary.cs @@ -15,6 +15,10 @@ namespace CalamityMod.Items.Potions.Alcohol public new string LocalizationCategory => "Items.Potions"; public static float PierceDamageMultiplier = 0.66f; + public static float SpawnRateGateMultiplier = 0.142f; + public static float IVDripAdditionalSpawnRateGateMultiplier = 0.6f; + public static float SpawnLimitMultiplier = 5f; + public static float IVDripAdditionalSpawnLimitMultiplier = 1.5f; public override LocalizedText Tooltip => base.Tooltip; public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.BloodyMary.DripEffect"); public AlcoholType AlcoholVariant => AlcoholType.BloodyMary; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 163b7a2a5b..0099c3e2d9 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -15,6 +15,7 @@ using CalamityMod.Graphics.Metaballs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Accessories.Vanity; using CalamityMod.Items.Armor.PlagueReaper; +using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Items.Tools; using CalamityMod.Items.Weapons.Melee; using CalamityMod.NPCs.Abyss; @@ -4259,10 +4260,16 @@ namespace CalamityMod.NPCs spawnRate = (int)(spawnRate * 0.25); // 4x spawn rate maxSpawns = (int)(maxSpawns * 4f); } - if (player.Calamity().bloodyMary) + if (player.Calamity().bloodyMary || player.GetModPlayer().HasAlcohol(AlcoholType.BloodyMary)) { - spawnRate = (int)(spawnRate * 0.142); // ~7x spawn rate - maxSpawns = (int)(maxSpawns * 5f); // Only 5x the cap, however + spawnRate = (int)(spawnRate * BloodyMary.SpawnRateGateMultiplier); // ~7x spawn rate + maxSpawns = (int)(maxSpawns * BloodyMary.SpawnLimitMultiplier); // 5x spawn rate cap + } + // Only when BOTH effects are active, also applies the previous spawn rate and limit boosts multiplicatively + if (player.Calamity().bloodyMary && player.GetModPlayer().HasAlcohol(AlcoholType.BloodyMary)) + { + spawnRate = (int)(spawnRate * BloodyMary.IVDripAdditionalSpawnRateGateMultiplier); // 1.667x spawn rate + maxSpawns = (int)(maxSpawns * BloodyMary.IVDripAdditionalSpawnLimitMultiplier); // 1.5x spawn rate cap } // Reductions From 91bd5d44c4706a9963b28b0c5b1769dd607e3263 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 17 Mar 2026 03:05:06 -0400 Subject: [PATCH 06/28] the rest of the effects --- CalPlayer/CalamityPlayer.cs | 49 ++++++++++++++----- CalPlayer/CalamityPlayerHitHurt.cs | 3 +- CalPlayer/CalamityPlayerLifeRegen.cs | 4 +- CalPlayer/CalamityPlayerMiscEffects.cs | 49 ++++++++++++++----- CalPlayer/CalamityPlayerOnHit.cs | 15 ++++-- ILEditing/MechanicILChanges.cs | 2 + Items/Accessories/IVDripOnTheRocks.cs | 18 +++---- Items/Potions/Alcohol/BloodyMary.cs | 2 +- Items/Potions/Alcohol/CaribbeanRum.cs | 2 +- Items/Potions/Alcohol/CinnamonRoll.cs | 2 +- Items/Potions/Alcohol/Everclear.cs | 4 +- Items/Potions/Alcohol/EvergreenGin.cs | 10 ++-- Items/Potions/Alcohol/Fireball.cs | 6 ++- Items/Potions/Alcohol/GrapeBeer.cs | 5 +- Items/Potions/Alcohol/Manhattan.cs | 6 ++- Items/Potions/Alcohol/Margarita.cs | 2 +- Items/Potions/Alcohol/Moonshine.cs | 2 +- Items/Potions/Alcohol/MoscowMule.cs | 2 +- Items/Potions/Alcohol/OldFashioned.cs | 2 +- Items/Potions/Alcohol/PurpleHaze.cs | 2 +- Items/Potions/Alcohol/RedWine.cs | 2 +- Items/Potions/Alcohol/Rum.cs | 2 +- Items/Potions/Alcohol/Screwdriver.cs | 7 ++- Items/Potions/Alcohol/StarBeamRye.cs | 2 +- Items/Potions/Alcohol/Tequila.cs | 6 ++- Items/Potions/Alcohol/TequilaSunrise.cs | 2 +- Items/Potions/Alcohol/Vodka.cs | 10 +++- Items/Potions/Alcohol/Whiskey.cs | 14 +++--- Items/Potions/Alcohol/WhiteWine.cs | 2 +- .../en-US/Mods.CalamityMod.Condition.hjson | 1 - .../Mods.CalamityMod.Items.Potions.hjson | 30 ++++++------ Projectiles/CalamityGlobalProjectile.cs | 18 +++---- 32 files changed, 182 insertions(+), 101 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index a53649bd48..fe13aae948 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -4586,12 +4586,12 @@ namespace CalamityMod.CalPlayer } //Multiply vertical speed - if (redWine) + if (redWine || Player.GetModPlayer().HasAlcohol(AlcoholType.RedWine)) { if (Player.velocity.Y > 0.2f || Player.velocity.Y < -0.2f) { redWineStoredY = Player.velocity.Y; - Player.velocity.Y *= 1 + RedWine.VerticalSpeedBoost; + Player.velocity.Y *= 1 + (redWine ? RedWine.VerticalSpeedBoost : 0) + (Player.GetModPlayer().HasAlcohol(AlcoholType.RedWine) ? RedWine.VerticalSpeedBoost : 0); } else { @@ -4842,6 +4842,8 @@ namespace CalamityMod.CalPlayer } if (moonshine) Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + Moonshine.MaxLifePercentBoost)); + if (Player.GetModPlayer().HasAlcohol(AlcoholType.Moonshine)) + Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + Moonshine.MaxLifePercentBoost)); ForceVariousEffects(); } #endregion @@ -4849,7 +4851,7 @@ namespace CalamityMod.CalPlayer #region PostUpdateEquips public override void PostUpdateEquips() { - + var dripPlayer = Player.GetModPlayer(); var item = Player.HeldItem; if (!(item.IsAir || item.damage <= 0)) { @@ -4860,9 +4862,14 @@ namespace CalamityMod.CalPlayer TimeHoldingMelee = (int)Whiskey.TimeToDischarge; if (whiskey) { - Player.GetDamage(DamageClass.Melee) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingMelee / Whiskey.TimeToDischarge); + Player.GetDamage(DamageClass.Melee) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingMelee / Whiskey.TimeToDischarge); } - } else + else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + { + Player.GetDamage(DamageClass.Melee) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingMelee / Whiskey.TimeToDischarge); + } + } + else { TimeHoldingMelee -= 2; if (TimeHoldingMelee < 0) @@ -4875,7 +4882,11 @@ namespace CalamityMod.CalPlayer TimeHoldingRanged = (int)Whiskey.TimeToDischarge; if (whiskey) { - Player.GetDamage(DamageClass.Ranged) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingRanged / Whiskey.TimeToDischarge); + Player.GetDamage(DamageClass.Ranged) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingRanged / Whiskey.TimeToDischarge); + } + else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + { + Player.GetDamage(DamageClass.Ranged) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingRanged / Whiskey.TimeToDischarge); } } else @@ -4891,7 +4902,11 @@ namespace CalamityMod.CalPlayer TimeHoldingMagic = (int)Whiskey.TimeToDischarge; if (whiskey) { - Player.GetDamage(DamageClass.Magic) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingMagic / Whiskey.TimeToDischarge); + Player.GetDamage(DamageClass.Magic) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingMagic / Whiskey.TimeToDischarge); + } + else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + { + Player.GetDamage(DamageClass.Magic) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingMagic / Whiskey.TimeToDischarge); } } else @@ -4907,7 +4922,11 @@ namespace CalamityMod.CalPlayer TimeHoldingSummon = (int)Whiskey.TimeToDischarge; if (whiskey) { - Player.GetDamage(DamageClass.Summon) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingSummon / Whiskey.TimeToDischarge); + Player.GetDamage(DamageClass.Summon) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingSummon / Whiskey.TimeToDischarge); + } + else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + { + Player.GetDamage(DamageClass.Summon) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingSummon / Whiskey.TimeToDischarge); } } else @@ -4921,9 +4940,13 @@ namespace CalamityMod.CalPlayer TimeHoldingRogue++; if (TimeHoldingRogue > Whiskey.TimeToDischarge) TimeHoldingRogue = (int)Whiskey.TimeToDischarge; - if (whiskey) + if ((whiskey ^ dripPlayer.HasAlcohol(AlcoholType.Whiskey))) { - Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.MaxDamageBoost, Whiskey.MinDamageBoost, TimeHoldingRogue / Whiskey.TimeToDischarge); + Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingRogue / Whiskey.TimeToDischarge); + } + else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + { + Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingRogue / Whiskey.TimeToDischarge); } } else @@ -5077,7 +5100,7 @@ namespace CalamityMod.CalPlayer } //reset the stored Y value for red wine's increased vertical speed - if (redWine && (redWineStoredY > 0.2f || redWineStoredY < -0.2f) && (Player.velocity.Y > 0.2f || Player.velocity.Y < -0.2f)) + if ((redWine || Player.GetModPlayer().HasAlcohol(AlcoholType.RedWine)) && (redWineStoredY > 0.2f || redWineStoredY < -0.2f) && (Player.velocity.Y > 0.2f || Player.velocity.Y < -0.2f)) { Player.velocity.Y = redWineStoredY; } @@ -5270,6 +5293,8 @@ namespace CalamityMod.CalPlayer if (moscowMule) knockback += MoscowMule.KnockbackBoost; + if (Player.GetModPlayer().HasAlcohol(AlcoholType.MoscowMule)) + knockback += MoscowMule.KnockbackBoost; if (titanHeartMantle && rogue) knockback += TitanHeartMantle.RogueKnockbackBoost; @@ -5448,7 +5473,7 @@ namespace CalamityMod.CalPlayer { if (bladeArmEnchant) return false; - if (purpleHaze) + if (purpleHaze || Player.GetModPlayer().HasAlcohol(AlcoholType.PurpleHaze)) { if (item.CountsAsClass() && StealthStrikeAvailable()) { diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 38b829bd1e..07de97c998 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -2859,8 +2859,7 @@ namespace CalamityMod.CalPlayer defenseDamageRecoveryFrames = 0; // Directly add the base defense damage recovery time to whatever recovery time the player already has. - int baseTime = DefenseDamageBaseRecoveryTime * (moonshine ? 3 : 1); - totalDefenseDamageRecoveryFrames = defenseDamageRecoveryFrames + baseTime; + int baseTime = DefenseDamageBaseRecoveryTime * (moonshine ? 3 : 1) * (Player.GetModPlayer().HasAlcohol(AlcoholType.Moonshine) ? 3 : 1); if (totalDefenseDamageRecoveryFrames > DefenseDamageMaxRecoveryTime) totalDefenseDamageRecoveryFrames = DefenseDamageMaxRecoveryTime; diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index e667798497..9a3c29c0c8 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -270,8 +270,11 @@ namespace CalamityMod.CalPlayer // At the last second, Reaver defense helm reduces DoT debuffs by 20% if (reaverDefense) totalNegativeLifeRegen -= (int)(totalNegativeLifeRegen * ReaverHeadTank.SetBonusDebuffDamageReduction); + if (tequilaSunrise) totalNegativeLifeRegen = (int)(totalNegativeLifeRegen * TequilaSunrise.DoTMultiplier); + if (Player.GetModPlayer().HasAlcohol(AlcoholType.TequilaSunrise)) + totalNegativeLifeRegen = (int)(totalNegativeLifeRegen * TequilaSunrise.DoTMultiplier); Player.lifeRegen -= (int)totalNegativeLifeRegen; @@ -447,7 +450,6 @@ namespace CalamityMod.CalPlayer Player.lifeRegenTime += 1800; } } - var dripPlayer = Player.GetModPlayer(); if (dripPlayer.HasAlcohol(AlcoholType.TequilaSunrise)) { diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 874396fb37..7c4981e964 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1012,11 +1012,16 @@ namespace CalamityMod.CalPlayer // Incinerate the target with either Vulnerability Hex or True Vulnerability Hex, depending on current cursor focus. // This adds 8 to the buff duration, which results in a net increase of 3 frames every time damage is dealt, due to damage occurring every 5 frames. int buffToInflict = target.Calamity().trueVulnerabilityHex ? ModContent.BuffType() : ModContent.BuffType(); - if (!target.HasBuff(buffToInflict)) - target.AddBuff(buffToInflict, 52); - target.buffTime[target.FindBuffIndex(buffToInflict)] += 8; - if (target.buffTime[target.FindBuffIndex(buffToInflict)] < VulnerabilityHex.CalamityDuration) - target.buffTime[target.FindBuffIndex(buffToInflict)] = VulnerabilityHex.CalamityDuration; + if (!target.buffImmune[buffToInflict]) + { + if (!target.HasBuff(buffToInflict)) + target.AddBuff(buffToInflict, 52); + + int index = target.FindBuffIndex(buffToInflict); + + if (index != -1) + target.buffTime[index] = Math.Max(target.buffTime[index] + 8, VulnerabilityHex.CalamityDuration); + } // Make some fancy dust to indicate damage is being done. for (int j = 0; j < 12; j++) @@ -1260,6 +1265,18 @@ namespace CalamityMod.CalPlayer } } } + if (Player.GetModPlayer().HasAlcohol(AlcoholType.Margarita)) + { + if (Main.myPlayer == Player.whoAmI) + { + for (int l = 0; l < Player.MaxBuffs; l++) + { + int buffID = Player.buffType[l]; + if (Player.buffTime[l] > 2 && CalamityBuffSets.IsDebuff[buffID]) + Player.buffTime[l]--; + } + } + } // Update the Providence Burn effect drawer if applicable. float providenceBurnIntensity = 0f; @@ -3475,9 +3492,9 @@ namespace CalamityMod.CalPlayer { //this is so janky looking but it's the only way I could get it to work properly if (!(StealthStrikeAvailable() && Player.HeldItem.DamageType == RogueDamageClass.Instance)) - Player.GetDamage(DamageClass.Generic) += PurpleHaze.DamageBoost; + Player.GetDamage(DamageClass.Generic) += PurpleHaze.DamageBoost + ((dripPlayer.HasAlcohol(AlcoholType.PurpleHaze) && purpleHaze) ? PurpleHaze.DamageBoost : 0); else - stealthDamage -= PurpleHaze.StealthDamageLoss; + stealthDamage -= PurpleHaze.StealthDamageLoss + ((dripPlayer.HasAlcohol(AlcoholType.PurpleHaze) && purpleHaze) ? PurpleHaze.StealthDamageLoss : 0); } if (everclear) @@ -3502,9 +3519,12 @@ namespace CalamityMod.CalPlayer Player.GetDamage() *= StarBeamRye.MagicDmgMult; } - if (whiteWine) + if (whiteWine || dripPlayer.HasAlcohol(AlcoholType.WhiteWine)) { - Player.wingTimeMax = (int)(Player.wingTimeMax * (1f - WhiteWine.FlightTimeLoss)); + if (whiteWine) + Player.wingTimeMax = (int)(Player.wingTimeMax * (1f - WhiteWine.FlightTimeLoss)); + if (Player.GetModPlayer().HasAlcohol(AlcoholType.WhiteWine)) + Player.wingTimeMax = (int)(Player.wingTimeMax * (1f - WhiteWine.FlightTimeLoss)); float bonus = 0f; float MaxDistance = 640f; @@ -3516,7 +3536,12 @@ namespace CalamityMod.CalPlayer } else bonus = 0; - whiteWineTimer += bonus * WhiteWine.FlightTimeRecoveryAmount * (dripPlayer.HasAlcohol(AlcoholType.Everclear) ? 2 : 1); + + if (whiteWine) + whiteWineTimer += bonus * WhiteWine.FlightTimeRecoveryAmount; + if (Player.GetModPlayer().HasAlcohol(AlcoholType.WhiteWine)) + whiteWineTimer += bonus * WhiteWine.FlightTimeRecoveryAmount; + while (whiteWineTimer > 1) { if (Player.wingTime < Player.wingTimeMax) @@ -3526,9 +3551,9 @@ namespace CalamityMod.CalPlayer } if (redWine) - { Player.wingTimeMax = (int)(Player.wingTimeMax * (1f - RedWine.FlightTimeLoss)); - } + if (Player.GetModPlayer().HasAlcohol(AlcoholType.RedWine)) + Player.wingTimeMax = (int)(Player.wingTimeMax * (1f - RedWine.FlightTimeLoss)); if (giantPearl) { diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 478ec02a8b..81919a7760 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -243,7 +243,10 @@ namespace CalamityMod.CalPlayer if (proj.type != ProjectileType()) MythrilArmorSetChange.OnHitEffects(target, damageDone, Player); - if (moscowMule) + var ivDripPlayer = Player.GetModPlayer(); + + // "Heavy" Knockback effect + if (moscowMule || ivDripPlayer.HasAlcohol(AlcoholType.MoscowMule)) { var center = Player.Center; if (proj.IsMinionOrSentryRelated) @@ -258,10 +261,16 @@ namespace CalamityMod.CalPlayer { proj.damage = (int)(proj.damage * (moscowMule ? 0.8f : 1f) * (bloodyMary ? 0.75f : 1f)); } - + } + if (ivDripPlayer.HasAlcohol(AlcoholType.MoscowMule) || ivDripPlayer.HasAlcohol(AlcoholType.BloodyMary)) + { + if (!(PierceResistNPC.exemptProjectiles.Contains(proj.type) || (PierceResistNPC.singleHitboxExemptProjectiles.ContainsKey(proj.type) && PierceResistNPC.singleHitboxExemptProjectiles[proj.type]))) + { + proj.damage = (int)(proj.damage * (ivDripPlayer.HasAlcohol(AlcoholType.MoscowMule) ? 0.8f : 1f) * (ivDripPlayer.HasAlcohol(AlcoholType.BloodyMary) ? 0.75f : 1f)); + } } - if (witheringWeaponEnchant) + if (witheringWeaponEnchant) witheringDamageDone += (int)(damageDone * (hit.Crit ? 2D : 1D)); cgn.TypelessDebuffMultiplier = TypelessDebuffMultiplier; cgn.HeatDebuffMultiplier = HeatDebuffMultiplier; diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index 38e435b56e..775374dc21 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -563,6 +563,8 @@ namespace CalamityMod.ILEditing { if (self.Calamity().oldFashioned) damage = (int)(damage * OldFashioned.DamageBoostMultiplier); + if (self.GetModPlayer().HasAlcohol(AlcoholType.OldFashioned)) + damage = (int)(damage * OldFashioned.DamageBoostMultiplier); orig(self, npc, damage, knockback, direction, crit, damageType, damageVariation); } #endregion diff --git a/Items/Accessories/IVDripOnTheRocks.cs b/Items/Accessories/IVDripOnTheRocks.cs index b10f927934..c9495b3800 100644 --- a/Items/Accessories/IVDripOnTheRocks.cs +++ b/Items/Accessories/IVDripOnTheRocks.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Accessories public interface IAlcoholItem { - Action AlcoholEffect { get; } + Action IVDripAlcoholEffect { get; } AlcoholType AlcoholVariant { get; } LocalizedText DripEffectText { get; } @@ -161,7 +161,7 @@ namespace CalamityMod.Items.Accessories Item alcoholItem = new Item(containedAlcoholID); if (alcoholItem.ModItem is IAlcoholItem alcohol) - dripPlayer.ApplyAlcoholEffect(alcohol.AlcoholEffect); + dripPlayer.ApplyIVDripAlcoholEffect(alcohol.IVDripAlcoholEffect); } } public override void ModifyTooltips(List tooltips) @@ -216,7 +216,7 @@ namespace CalamityMod.Items.Accessories public class IVDripPlayer : ModPlayer { - public Dictionary, float> alcoholEffects = new(); + public Dictionary, float> IVDripAlcoholEffects = new(); public bool ivDripEquipped; public AlcoholType currentAlcohol = AlcoholType.None; @@ -228,25 +228,25 @@ namespace CalamityMod.Items.Accessories public override void ResetEffects() { - alcoholEffects.Clear(); + IVDripAlcoholEffects.Clear(); ivDripEquipped = false; currentAlcohol = AlcoholType.None; } - public void ApplyAlcoholEffect(Action effect) + public void ApplyIVDripAlcoholEffect(Action effect) { if (effect == null) return; - if (alcoholEffects.ContainsKey(effect)) - alcoholEffects[effect] += 1f; + if (IVDripAlcoholEffects.ContainsKey(effect)) + IVDripAlcoholEffects[effect] += 1f; else - alcoholEffects[effect] = 1f; + IVDripAlcoholEffects[effect] = 1f; } public override void PostUpdateEquips() { - foreach (var effect in alcoholEffects) + foreach (var effect in IVDripAlcoholEffects) { effect.Key.Invoke(Player, effect.Value); } diff --git a/Items/Potions/Alcohol/BloodyMary.cs b/Items/Potions/Alcohol/BloodyMary.cs index bc4631872a..5b378c1796 100644 --- a/Items/Potions/Alcohol/BloodyMary.cs +++ b/Items/Potions/Alcohol/BloodyMary.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.BloodyMary.DripEffect"); public AlcoholType AlcoholVariant => AlcoholType.BloodyMary; - public Action AlcoholEffect => ApplyBloodyMaryEffect; + public Action IVDripAlcoholEffect => ApplyBloodyMaryEffect; private static void ApplyBloodyMaryEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/CaribbeanRum.cs b/Items/Potions/Alcohol/CaribbeanRum.cs index aea140b137..d6f44a1265 100644 --- a/Items/Potions/Alcohol/CaribbeanRum.cs +++ b/Items/Potions/Alcohol/CaribbeanRum.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Potions.Alcohol public AlcoholType AlcoholVariant => AlcoholType.CaribbeanRum; - public Action AlcoholEffect => ApplyCaribbeanRumEffect; + public Action IVDripAlcoholEffect => ApplyCaribbeanRumEffect; private static void ApplyCaribbeanRumEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/CinnamonRoll.cs b/Items/Potions/Alcohol/CinnamonRoll.cs index 9dca7e28a9..c9b68f320e 100644 --- a/Items/Potions/Alcohol/CinnamonRoll.cs +++ b/Items/Potions/Alcohol/CinnamonRoll.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Potions.Alcohol public override LocalizedText Tooltip => base.Tooltip; public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.CinnamonRoll.DripEffect"); - public Action AlcoholEffect => ApplyCinnamonRollEffect; + public Action IVDripAlcoholEffect => ApplyCinnamonRollEffect; private static void ApplyCinnamonRollEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/Everclear.cs b/Items/Potions/Alcohol/Everclear.cs index 21fa080418..9536c6f0b8 100644 --- a/Items/Potions/Alcohol/Everclear.cs +++ b/Items/Potions/Alcohol/Everclear.cs @@ -18,10 +18,10 @@ namespace CalamityMod.Items.Potions.Alcohol public static int RegenLoss = 10; public static float DefenseLossPercent = 0.30f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), RegenLoss.ToRegenPerSecond(), DefenseLossPercent.ToPercent()); - public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.StarBeamRye.DripEffect").WithFormatArgs(DamageBoost.ToPercent(), RegenLoss.ToRegenPerSecond(), DefenseLossPercent.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Everclear.DripEffect").WithFormatArgs(DamageBoost.ToPercent(), RegenLoss.ToRegenPerSecond(), DefenseLossPercent.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Everclear; - public Action AlcoholEffect => ApplyEverclearEffect; + public Action IVDripAlcoholEffect => ApplyEverclearEffect; private static void ApplyEverclearEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/EvergreenGin.cs b/Items/Potions/Alcohol/EvergreenGin.cs index e098e4276f..45ee686743 100644 --- a/Items/Potions/Alcohol/EvergreenGin.cs +++ b/Items/Potions/Alcohol/EvergreenGin.cs @@ -20,12 +20,16 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.EvergreenGin.DripEffect").WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.EvergreenGin; - public Action AlcoholEffect => ApplyEvergreenGinEffect; - + public Action IVDripAlcoholEffect => ApplyEvergreenGinEffect; private static void ApplyEvergreenGinEffect(Player player, float intensity) { - // out of order 20 defense + var cplayer = player.Calamity(); + cplayer.SicknessDebuffMultiplier += EvergreenGin.DebuffBoost; + cplayer.WaterDebuffMultiplier += EvergreenGin.DebuffBoost; + cplayer.ElectricDebuffMultiplier -= EvergreenGin.DebuffLoss; + cplayer.HeatDebuffMultiplier -= EvergreenGin.DebuffLoss; } + public override void SetStaticDefaults() { Item.ResearchUnlockCount = 20; diff --git a/Items/Potions/Alcohol/Fireball.cs b/Items/Potions/Alcohol/Fireball.cs index a34b374fc5..c80f132c63 100644 --- a/Items/Potions/Alcohol/Fireball.cs +++ b/Items/Potions/Alcohol/Fireball.cs @@ -21,11 +21,13 @@ namespace CalamityMod.Items.Potions.Alcohol public AlcoholType AlcoholVariant => AlcoholType.Fireball; - public Action AlcoholEffect => ApplyFireballEffect; + public Action IVDripAlcoholEffect => ApplyFireballEffect; private static void ApplyFireballEffect(Player player, float intensity) { - // out of order 20 defense + var cplayer = player.Calamity(); + cplayer.HeatDebuffMultiplier += Fireball.DebuffBoost; + cplayer.SicknessDebuffMultiplier -= Fireball.DebuffLoss; } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/GrapeBeer.cs b/Items/Potions/Alcohol/GrapeBeer.cs index 162d0918d6..4c5e554919 100644 --- a/Items/Potions/Alcohol/GrapeBeer.cs +++ b/Items/Potions/Alcohol/GrapeBeer.cs @@ -19,11 +19,12 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.GrapeBeer.DripEffect").WithFormatArgs(CritLoss); public AlcoholType AlcoholVariant => AlcoholType.GrapeBeer; - public Action AlcoholEffect => ApplyGrapeBeerEffect; + public Action IVDripAlcoholEffect => ApplyGrapeBeerEffect; private static void ApplyGrapeBeerEffect(Player player, float intensity) { - // out of order 20 defense + var cplayer = player.Calamity(); + cplayer.critDamage -= GrapeBeer.CritLoss * 0.01f; } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/Manhattan.cs b/Items/Potions/Alcohol/Manhattan.cs index 794fb4e3b4..f3612f9e03 100644 --- a/Items/Potions/Alcohol/Manhattan.cs +++ b/Items/Potions/Alcohol/Manhattan.cs @@ -21,11 +21,13 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Manhattan.DripEffect").WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Manhattan; - public Action AlcoholEffect => ApplyManhattanEffect; + public Action IVDripAlcoholEffect => ApplyManhattanEffect; private static void ApplyManhattanEffect(Player player, float intensity) { - // out of order 20 defense + var cplayer = player.Calamity(); + cplayer.ColdDebuffMultiplier += Manhattan.DebuffBoost; + cplayer.WaterDebuffMultiplier -= Manhattan.DebuffLoss; } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/Margarita.cs b/Items/Potions/Alcohol/Margarita.cs index a0938a76ce..e9f06293c3 100644 --- a/Items/Potions/Alcohol/Margarita.cs +++ b/Items/Potions/Alcohol/Margarita.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Margarita.DripEffect").WithFormatArgs(DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Margarita; - public Action AlcoholEffect => ApplyMargaritaEffect; + public Action IVDripAlcoholEffect => ApplyMargaritaEffect; private static void ApplyMargaritaEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/Moonshine.cs b/Items/Potions/Alcohol/Moonshine.cs index fbac9494d2..46df0bef8a 100644 --- a/Items/Potions/Alcohol/Moonshine.cs +++ b/Items/Potions/Alcohol/Moonshine.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Moonshine.DripEffect").WithFormatArgs(MaxLifePercentBoost.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Moonshine; - public Action AlcoholEffect => ApplyMoonshineEffect; + public Action IVDripAlcoholEffect => ApplyMoonshineEffect; private static void ApplyMoonshineEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/MoscowMule.cs b/Items/Potions/Alcohol/MoscowMule.cs index 1bc0ebca8e..16429c5716 100644 --- a/Items/Potions/Alcohol/MoscowMule.cs +++ b/Items/Potions/Alcohol/MoscowMule.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.MoscowMule.DripEffect").WithFormatArgs(KnockbackBoost.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.MoscowMule; - public Action AlcoholEffect => ApplyMoscowMuleEffect; + public Action IVDripAlcoholEffect => ApplyMoscowMuleEffect; private static void ApplyMoscowMuleEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/OldFashioned.cs b/Items/Potions/Alcohol/OldFashioned.cs index 78c1967e83..9c77435041 100644 --- a/Items/Potions/Alcohol/OldFashioned.cs +++ b/Items/Potions/Alcohol/OldFashioned.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.OldFashioned.DripEffect").WithFormatArgs(DamageBoostMultiplier.ToString("N2"), DamageReductionMultiplier.ToString("N2")); public AlcoholType AlcoholVariant => AlcoholType.OldFashioned; - public Action AlcoholEffect => ApplyOldFashionedEffect; + public Action IVDripAlcoholEffect => ApplyOldFashionedEffect; private static void ApplyOldFashionedEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/PurpleHaze.cs b/Items/Potions/Alcohol/PurpleHaze.cs index 6da2d0cd2a..c9ea0dc7e5 100644 --- a/Items/Potions/Alcohol/PurpleHaze.cs +++ b/Items/Potions/Alcohol/PurpleHaze.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Potions.Alcohol public AlcoholType AlcoholVariant => AlcoholType.PurpleHaze; - public Action AlcoholEffect => ApplyPurpleHazeEffect; + public Action IVDripAlcoholEffect => ApplyPurpleHazeEffect; private static void ApplyPurpleHazeEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/RedWine.cs b/Items/Potions/Alcohol/RedWine.cs index 5fe03db326..2c41efb7de 100644 --- a/Items/Potions/Alcohol/RedWine.cs +++ b/Items/Potions/Alcohol/RedWine.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Potions.Alcohol public AlcoholType AlcoholVariant => AlcoholType.RedWine; - public Action AlcoholEffect => ApplyRedWineEffect; + public Action IVDripAlcoholEffect => ApplyRedWineEffect; private static void ApplyRedWineEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/Rum.cs b/Items/Potions/Alcohol/Rum.cs index 8069de8cc8..5058d46b0f 100644 --- a/Items/Potions/Alcohol/Rum.cs +++ b/Items/Potions/Alcohol/Rum.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Rum.DripEffect").WithFormatArgs((NonMinionBoost - 1).ToPercent(), (1 - MinionBoost).ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Rum; - public Action AlcoholEffect => ApplyRumEffect; + public Action IVDripAlcoholEffect => ApplyRumEffect; private static void ApplyRumEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/Screwdriver.cs b/Items/Potions/Alcohol/Screwdriver.cs index 13aed890f8..08f48048e5 100644 --- a/Items/Potions/Alcohol/Screwdriver.cs +++ b/Items/Potions/Alcohol/Screwdriver.cs @@ -21,11 +21,14 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Screwdriver.DripEffect").WithFormatArgs(DebuffBoost.ToString("N2"), DebuffLoss.ToString("N2")); public AlcoholType AlcoholVariant => AlcoholType.Screwdriver; - public Action AlcoholEffect => ApplyScrewdriverEffect; + public Action IVDripAlcoholEffect => ApplyScrewdriverEffect; private static void ApplyScrewdriverEffect(Player player, float intensity) { - // out of order 20 defense + player.blockRange += 5; + player.tileSpeed += 1; + player.wallSpeed += 1; + player.GetDamage(DamageClass.Generic) *= 0.75f; } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/StarBeamRye.cs b/Items/Potions/Alcohol/StarBeamRye.cs index 3df2d802a0..3cd5ec0edb 100644 --- a/Items/Potions/Alcohol/StarBeamRye.cs +++ b/Items/Potions/Alcohol/StarBeamRye.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions.Alcohol public AlcoholType AlcoholVariant => AlcoholType.StarBeamRye; public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.StarBeamRye.DripEffect"); - public Action AlcoholEffect => ApplyStarBeamRyeEffect; + public Action IVDripAlcoholEffect => ApplyStarBeamRyeEffect; private static void ApplyStarBeamRyeEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/Tequila.cs b/Items/Potions/Alcohol/Tequila.cs index 6dec967956..b60410fe92 100644 --- a/Items/Potions/Alcohol/Tequila.cs +++ b/Items/Potions/Alcohol/Tequila.cs @@ -21,11 +21,13 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Tequila.DripEffect").WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Tequila; - public Action AlcoholEffect => ApplyTequilaEffect; + public Action IVDripAlcoholEffect => ApplyTequilaEffect; private static void ApplyTequilaEffect(Player player, float intensity) { - // out of order 20 defense + var cplayer = player.Calamity(); + cplayer.ElectricDebuffMultiplier += Tequila.DebuffBoost; + cplayer.ColdDebuffMultiplier -= Tequila.DebuffLoss; } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/TequilaSunrise.cs b/Items/Potions/Alcohol/TequilaSunrise.cs index 68d53be9df..072e2739b0 100644 --- a/Items/Potions/Alcohol/TequilaSunrise.cs +++ b/Items/Potions/Alcohol/TequilaSunrise.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.TequilaSunrise.DripEffect").WithFormatArgs((DoTMultiplier-1).ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.TequilaSunrise; - public Action AlcoholEffect => ApplyTequilaSunriseEffect; + public Action IVDripAlcoholEffect => ApplyTequilaSunriseEffect; private static void ApplyTequilaSunriseEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/Vodka.cs b/Items/Potions/Alcohol/Vodka.cs index 1d699f8fa2..d1be7fd4f0 100644 --- a/Items/Potions/Alcohol/Vodka.cs +++ b/Items/Potions/Alcohol/Vodka.cs @@ -21,11 +21,17 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Vodka.DripEffect").WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Vodka; - public Action AlcoholEffect => ApplyVodkaEffect; + public Action IVDripAlcoholEffect => ApplyVodkaEffect; private static void ApplyVodkaEffect(Player player, float intensity) { - // out of order 20 defense + var cplayer = player.Calamity(); + cplayer.TypelessDebuffMultiplier += Vodka.DebuffBoost; + cplayer.HeatDebuffMultiplier -= Vodka.DebuffLoss; + cplayer.ColdDebuffMultiplier -= Vodka.DebuffLoss; + cplayer.SicknessDebuffMultiplier -= Vodka.DebuffLoss; + cplayer.WaterDebuffMultiplier -= Vodka.DebuffLoss; + cplayer.ElectricDebuffMultiplier -= Vodka.DebuffLoss; } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/Whiskey.cs b/Items/Potions/Alcohol/Whiskey.cs index ba19be7401..c15902493e 100644 --- a/Items/Potions/Alcohol/Whiskey.cs +++ b/Items/Potions/Alcohol/Whiskey.cs @@ -14,18 +14,18 @@ namespace CalamityMod.Items.Potions.Alcohol { public new string LocalizationCategory => "Items.Potions"; - public static float MaxDamageBoost = 0.15f; - public static float MinDamageBoost = -0.15f; + public static float MaxDamageCeiling = 0.15f; + public static float MinDamageFloor = -0.15f; public static float TimeToDischarge = 600; public static float TimeToRecharge = 300; - public static float IVDripDamageCeilingGain = 0.3f; - public static float IVDripDamageFloorReduction = -0.3f; + public static float IVDripDamageCeiling = 0.3f; + public static float IVDripDamageFloor = -0.3f; - public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinDamageBoost.ToPercent(), MaxDamageBoost.ToPercent(), (TimeToDischarge/60).ToString("0.##"), (TimeToRecharge/60).ToString("0.##")); - public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Whiskey.DripEffect").WithFormatArgs(MinDamageBoost.ToPercent(), MaxDamageBoost.ToPercent(), (TimeToDischarge / 60).ToString("0.##"), (TimeToRecharge / 60).ToString("0.##"), IVDripDamageCeilingGain.ToPercent(), IVDripDamageFloorReduction.ToPercent()); + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinDamageFloor.ToPercent(), MaxDamageCeiling.ToPercent(), (TimeToDischarge/60).ToString("0.##"), (TimeToRecharge/60).ToString("0.##")); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Whiskey.DripEffect").WithFormatArgs(MinDamageFloor.ToPercent(), MaxDamageCeiling.ToPercent(), (TimeToDischarge / 60).ToString("0.##"), (TimeToRecharge / 60).ToString("0.##"), MaxDamageCeiling.ToPercent(), MinDamageFloor.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Whiskey; - public Action AlcoholEffect => ApplyWhiskeyEffect; + public Action IVDripAlcoholEffect => ApplyWhiskeyEffect; private static void ApplyWhiskeyEffect(Player player, float intensity) { diff --git a/Items/Potions/Alcohol/WhiteWine.cs b/Items/Potions/Alcohol/WhiteWine.cs index f4c1053f3a..ee9e5b7af1 100644 --- a/Items/Potions/Alcohol/WhiteWine.cs +++ b/Items/Potions/Alcohol/WhiteWine.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Potions.Alcohol public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.WhiteWine.DripEffect").WithFormatArgs(FlightTimeLoss.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.WhiteWine; - public Action AlcoholEffect => ApplyWhiteWineEffect; + public Action IVDripAlcoholEffect => ApplyWhiteWineEffect; private static void ApplyWhiteWineEffect(Player player, float intensity) { diff --git a/Localization/en-US/Mods.CalamityMod.Condition.hjson b/Localization/en-US/Mods.CalamityMod.Condition.hjson index 7655748378..b757a152d4 100644 --- a/Localization/en-US/Mods.CalamityMod.Condition.hjson +++ b/Localization/en-US/Mods.CalamityMod.Condition.hjson @@ -47,7 +47,6 @@ Drops: { Drops if Providence was defeated only with the [i:CalamityMod/ProfanedSoulArtifact] Profaned Soul Artifact {$Bestiary_ItemDropConditions.IsExpert} ''' - TrasherKill: Mods.CalamityMod.Condition.Drops.TrasherKill } // Other conditions diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index cf828d87e3..00eff77d40 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -214,20 +214,6 @@ CinnamonRoll: { ''' } -PurpleHaze: { - DisplayName: Purple Haze - Tooltip: - ''' - For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% - {$Common.AlcoholWarning} - ''' - DripEffect: - ''' - For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% - Greatly reduces dash distance - ''' -} - Everclear: { DisplayName: Everclear Tooltip: @@ -241,7 +227,7 @@ Everclear: { ''' {0}% increased damage Reduces life regen by {1} HP/s and defense by {2}% - When combined with drinking Everclear straight, reduce count for {$Buffs.AlcoholPoisoning.DisplayName} by 1 + When combined with drinking Everclear straight, additionally reduce count for {$Buffs.AlcoholPoisoning.DisplayName} by 1 ''' } @@ -378,6 +364,20 @@ OldFashioned: { ''' } +PurpleHaze: { + DisplayName: Purple Haze + Tooltip: + ''' + For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% + {$Common.AlcoholWarning} + ''' + DripEffect: + ''' + For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% + Greatly reduces dash distance + ''' +} + RedWine: { DisplayName: Red Wine Tooltip: diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 4373bd7792..83e645a795 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -327,7 +327,8 @@ namespace CalamityMod.Projectiles void ApplyGrapeBeer() { grapeBeer = true; - conditionalHomingRange = 600; + var ivDripPlayer = Main.player[projectile.owner].GetModPlayer(); + conditionalHomingRange = ivDripPlayer.HasAlcohol(AlcoholType.GrapeBeer) ? 1800 : 600; if (projectile.timeLeft > 300 * projectile.MaxUpdates) projectile.timeLeft = 300 * projectile.MaxUpdates; //Calamity adds a hybrid iframe system when both local and static are set to true, so this works fine for both global and static projectiles. @@ -4599,7 +4600,6 @@ namespace CalamityMod.Projectiles CalamityPlayer modPlayer = player.Calamity(); // Old Fashioned buffs (or debuffs) apply if the player has Old Fashioned - // IV Drip on the Rocks inherits the same logic as Old Fashioned if (modPlayer.oldFashioned && buffedByOldFashioned.HasValue) modifiers.SourceDamage *= buffedByOldFashioned.Value ? OldFashioned.DamageBoostMultiplier : OldFashioned.DamageReductionMultiplier; @@ -4607,22 +4607,22 @@ namespace CalamityMod.Projectiles if (dripPlayer.HasAlcohol(AlcoholType.OldFashioned) && buffedByOldFashioned.HasValue) modifiers.SourceDamage *= buffedByOldFashioned.Value ? OldFashioned.DamageBoostMultiplier : OldFashioned.DamageReductionMultiplier; - if (modPlayer.rum && projectile.DamageType.CountsAsClass(DamageClass.Summon)) + if ((modPlayer.rum || dripPlayer.HasAlcohol(AlcoholType.Rum)) && projectile.DamageType.CountsAsClass(DamageClass.Summon)) { if (projectile.minion || ProjectileID.Sets.MinionShot[projectile.type]) - { - modifiers.SourceDamage *= Rum.MinionBoost; - } + modifiers.SourceDamage *= (modPlayer.rum ? Rum.MinionBoost : 1f) * (dripPlayer.HasAlcohol(AlcoholType.Rum) ? Rum.MinionBoost : 1f); else - modifiers.SourceDamage *= Rum.NonMinionBoost; + modifiers.SourceDamage *= (modPlayer.rum ? Rum.NonMinionBoost : 1f) * (dripPlayer.HasAlcohol(AlcoholType.Rum) ? Rum.NonMinionBoost : 1f); } - if (modPlayer.moscowMule || modPlayer.bloodyMary) + + if (modPlayer.moscowMule || modPlayer.bloodyMary || dripPlayer.HasAlcohol(AlcoholType.MoscowMule) || dripPlayer.HasAlcohol(AlcoholType.BloodyMary)) { if (projectile.DamageType == DamageClass.Summon || (PierceResistNPC.exemptProjectiles.Contains(projectile.type) || (PierceResistNPC.singleHitboxExemptProjectiles.ContainsKey(projectile.type) && PierceResistNPC.singleHitboxExemptProjectiles[projectile.type]))) { - modifiers.SourceDamage *= ((modPlayer.moscowMule ? MoscowMule.PierceDamageMultiplier : 1f) * (modPlayer.bloodyMary ? BloodyMary.PierceDamageMultiplier : 1f)); + modifiers.SourceDamage *= ((modPlayer.moscowMule ? MoscowMule.PierceDamageMultiplier : 1f) * (modPlayer.bloodyMary ? BloodyMary.PierceDamageMultiplier : 1f) * (dripPlayer.HasAlcohol(AlcoholType.MoscowMule) ? MoscowMule.PierceDamageMultiplier : 1f) * (dripPlayer.HasAlcohol(AlcoholType.BloodyMary) ? BloodyMary.PierceDamageMultiplier : 1f)); } } + if (projectile.type == ProjectileID.JoustingLance || projectile.type == ProjectileID.HallowJoustingLance || projectile.type == ProjectileID.ShadowJoustingLance) { // The vanilla damage Jousting Lance multiplier is as follows. Calamity overrides this with a new formula From b5b60ca42dcbdb494b6e174ede97442a7e35f8a7 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 17 Mar 2026 16:50:19 -0400 Subject: [PATCH 07/28] Updated comments and Margarita fix --- Items/Potions/Alcohol/BloodyMary.cs | 2 +- Items/Potions/Alcohol/CaribbeanRum.cs | 2 +- Items/Potions/Alcohol/CinnamonRoll.cs | 2 +- Items/Potions/Alcohol/Everclear.cs | 2 +- Items/Potions/Alcohol/GrapeBeer.cs | 1 + Items/Potions/Alcohol/Margarita.cs | 9 ++++++++- Items/Potions/Alcohol/Moonshine.cs | 2 +- Items/Potions/Alcohol/MoscowMule.cs | 2 +- Items/Potions/Alcohol/PurpleHaze.cs | 2 +- Items/Potions/Alcohol/RedWine.cs | 2 +- Items/Potions/Alcohol/Rum.cs | 2 +- Items/Potions/Alcohol/Whiskey.cs | 2 +- Items/Potions/Alcohol/WhiteWine.cs | 2 +- 13 files changed, 20 insertions(+), 12 deletions(-) diff --git a/Items/Potions/Alcohol/BloodyMary.cs b/Items/Potions/Alcohol/BloodyMary.cs index 5b378c1796..3f4b89888b 100644 --- a/Items/Potions/Alcohol/BloodyMary.cs +++ b/Items/Potions/Alcohol/BloodyMary.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyBloodyMaryEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayerOnHit } public override void SetStaticDefaults() diff --git a/Items/Potions/Alcohol/CaribbeanRum.cs b/Items/Potions/Alcohol/CaribbeanRum.cs index d6f44a1265..91ab6bf46d 100644 --- a/Items/Potions/Alcohol/CaribbeanRum.cs +++ b/Items/Potions/Alcohol/CaribbeanRum.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyCaribbeanRumEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayerMiscEffects } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/CinnamonRoll.cs b/Items/Potions/Alcohol/CinnamonRoll.cs index c9b68f320e..b9a062f753 100644 --- a/Items/Potions/Alcohol/CinnamonRoll.cs +++ b/Items/Potions/Alcohol/CinnamonRoll.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyCinnamonRollEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayerMiscEffects and CalamityPlayerOnHit } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/Everclear.cs b/Items/Potions/Alcohol/Everclear.cs index 9536c6f0b8..a34636e51d 100644 --- a/Items/Potions/Alcohol/Everclear.cs +++ b/Items/Potions/Alcohol/Everclear.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyEverclearEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayerLifeRegen and CalamityPlayerMiscEffects } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/GrapeBeer.cs b/Items/Potions/Alcohol/GrapeBeer.cs index 4c5e554919..d34af0cf49 100644 --- a/Items/Potions/Alcohol/GrapeBeer.cs +++ b/Items/Potions/Alcohol/GrapeBeer.cs @@ -25,6 +25,7 @@ namespace CalamityMod.Items.Potions.Alcohol { var cplayer = player.Calamity(); cplayer.critDamage -= GrapeBeer.CritLoss * 0.01f; + // Also see CalamityGlobalProjectile } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/Margarita.cs b/Items/Potions/Alcohol/Margarita.cs index e9f06293c3..36d2e06d81 100644 --- a/Items/Potions/Alcohol/Margarita.cs +++ b/Items/Potions/Alcohol/Margarita.cs @@ -25,7 +25,14 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyMargaritaEffect(Player player, float intensity) { - // out of order 20 defense + var cplayer = player.Calamity(); + cplayer.HeatDebuffMultiplier -= Margarita.DebuffLoss; + cplayer.SicknessDebuffMultiplier -= Margarita.DebuffLoss; + cplayer.ColdDebuffMultiplier -= Margarita.DebuffLoss; + cplayer.WaterDebuffMultiplier -= Margarita.DebuffLoss; + cplayer.ElectricDebuffMultiplier -= Margarita.DebuffLoss; + cplayer.TypelessDebuffMultiplier -= Margarita.DebuffLoss; + // Also see CalamityPlayerMiscEffects } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/Moonshine.cs b/Items/Potions/Alcohol/Moonshine.cs index 46df0bef8a..72b5de8c54 100644 --- a/Items/Potions/Alcohol/Moonshine.cs +++ b/Items/Potions/Alcohol/Moonshine.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyMoonshineEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayer and CalamityPlayerHitHurt } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/MoscowMule.cs b/Items/Potions/Alcohol/MoscowMule.cs index 16429c5716..e841647987 100644 --- a/Items/Potions/Alcohol/MoscowMule.cs +++ b/Items/Potions/Alcohol/MoscowMule.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyMoscowMuleEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayer and CalamityPlayerOnHit } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/PurpleHaze.cs b/Items/Potions/Alcohol/PurpleHaze.cs index c9ea0dc7e5..a1849e3e89 100644 --- a/Items/Potions/Alcohol/PurpleHaze.cs +++ b/Items/Potions/Alcohol/PurpleHaze.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyPurpleHazeEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayer and CalamityPlayerMiscEffects } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/RedWine.cs b/Items/Potions/Alcohol/RedWine.cs index 2c41efb7de..d516456873 100644 --- a/Items/Potions/Alcohol/RedWine.cs +++ b/Items/Potions/Alcohol/RedWine.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyRedWineEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayer and CalamityPlayerMiscEffects } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/Rum.cs b/Items/Potions/Alcohol/Rum.cs index 5058d46b0f..b06697e83f 100644 --- a/Items/Potions/Alcohol/Rum.cs +++ b/Items/Potions/Alcohol/Rum.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyRumEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityGlobalProjectile } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/Whiskey.cs b/Items/Potions/Alcohol/Whiskey.cs index c15902493e..3e75588bf4 100644 --- a/Items/Potions/Alcohol/Whiskey.cs +++ b/Items/Potions/Alcohol/Whiskey.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyWhiskeyEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayer } public override void SetStaticDefaults() { diff --git a/Items/Potions/Alcohol/WhiteWine.cs b/Items/Potions/Alcohol/WhiteWine.cs index ee9e5b7af1..ff03363812 100644 --- a/Items/Potions/Alcohol/WhiteWine.cs +++ b/Items/Potions/Alcohol/WhiteWine.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyWhiteWineEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayerMiscEffects } public override void SetStaticDefaults() { From 45033b19257711326f31d3c54f7231bf4a8d67a5 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 17 Mar 2026 18:38:34 -0400 Subject: [PATCH 08/28] Whiskey tooltip rewording --- Items/Potions/Alcohol/Whiskey.cs | 2 +- Localization/en-US/Mods.CalamityMod.Items.Potions.hjson | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Potions/Alcohol/Whiskey.cs b/Items/Potions/Alcohol/Whiskey.cs index 3e75588bf4..eb80d56101 100644 --- a/Items/Potions/Alcohol/Whiskey.cs +++ b/Items/Potions/Alcohol/Whiskey.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float IVDripDamageFloor = -0.3f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinDamageFloor.ToPercent(), MaxDamageCeiling.ToPercent(), (TimeToDischarge/60).ToString("0.##"), (TimeToRecharge/60).ToString("0.##")); - public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Whiskey.DripEffect").WithFormatArgs(MinDamageFloor.ToPercent(), MaxDamageCeiling.ToPercent(), (TimeToDischarge / 60).ToString("0.##"), (TimeToRecharge / 60).ToString("0.##"), MaxDamageCeiling.ToPercent(), MinDamageFloor.ToPercent()); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Whiskey.DripEffect").WithFormatArgs(MinDamageFloor.ToPercent(), MaxDamageCeiling.ToPercent(), (TimeToDischarge / 60).ToString("0.##"), (TimeToRecharge / 60).ToString("0.##"), IVDripDamageFloor.ToPercent(), IVDripDamageCeiling.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Whiskey; public Action IVDripAlcoholEffect => ApplyWhiskeyEffect; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 00eff77d40..0d5eb0702c 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -495,7 +495,7 @@ Whiskey: { Each class tracks this boost individually This boost lowers the longer you hold weapons of the same class, taking {2} seconds to fully decay This boost recharges when holding weapons of a different class, taking {3} seconds to fully recharge - When combined with drinking Whiskey straight, the damage variance becomes {4}% and {5}% + When combined with drinking Whiskey straight, damage varies between {4}% and {5}% ''' } From 41f6ecbe8c1848f3f533154b7f45bc4aef8c16a8 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 24 Mar 2026 01:16:14 -0400 Subject: [PATCH 09/28] iv drip moonshine fix --- CalPlayer/CalamityPlayer.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index fe13aae948..3eea9f0fcd 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -4840,10 +4840,8 @@ namespace CalamityMod.CalPlayer } } } - if (moonshine) - Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + Moonshine.MaxLifePercentBoost)); - if (Player.GetModPlayer().HasAlcohol(AlcoholType.Moonshine)) - Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + Moonshine.MaxLifePercentBoost)); + if (moonshine || Player.GetModPlayer().HasAlcohol(AlcoholType.Moonshine)) + Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + ((moonshine ? Moonshine.MaxLifePercentBoost : 1) * (Player.GetModPlayer().HasAlcohol(AlcoholType.Moonshine) ? Moonshine.MaxLifePercentBoost : 1)))); ForceVariousEffects(); } #endregion From 84a5f9014920e5af961303f11703a661720e00c2 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 24 Mar 2026 01:43:48 -0400 Subject: [PATCH 10/28] surely --- CalPlayer/CalamityPlayerHitHurt.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 07de97c998..3ce31f6e9c 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -2860,6 +2860,8 @@ namespace CalamityMod.CalPlayer // Directly add the base defense damage recovery time to whatever recovery time the player already has. int baseTime = DefenseDamageBaseRecoveryTime * (moonshine ? 3 : 1) * (Player.GetModPlayer().HasAlcohol(AlcoholType.Moonshine) ? 3 : 1); + totalDefenseDamageRecoveryFrames = defenseDamageRecoveryFrames + baseTime; + if (totalDefenseDamageRecoveryFrames > DefenseDamageMaxRecoveryTime) totalDefenseDamageRecoveryFrames = DefenseDamageMaxRecoveryTime; From 1161efea34768eff5deca9928a50c75e84eebf84 Mon Sep 17 00:00:00 2001 From: Xyk Date: Mon, 23 Mar 2026 23:14:33 -0700 Subject: [PATCH 11/28] Moonshine HP adjust --- CalPlayer/CalamityPlayer.cs | 14 ++++++++++++-- Items/Potions/Alcohol/Moonshine.cs | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 3eea9f0fcd..8d2e4fbae6 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -4840,8 +4840,14 @@ namespace CalamityMod.CalPlayer } } } - if (moonshine || Player.GetModPlayer().HasAlcohol(AlcoholType.Moonshine)) - Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + ((moonshine ? Moonshine.MaxLifePercentBoost : 1) * (Player.GetModPlayer().HasAlcohol(AlcoholType.Moonshine) ? Moonshine.MaxLifePercentBoost : 1)))); + if (Player.whoAmI == Main.myPlayer) + { + if (moonshine) + { + Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + Moonshine.MaxLifePercentBoost)); + } + } + ForceVariousEffects(); } #endregion @@ -4966,6 +4972,10 @@ namespace CalamityMod.CalPlayer if (TimeHoldingRogue-- < 0) TimeHoldingRogue = 0; } + if (dripPlayer.HasAlcohol(AlcoholType.Moonshine)) + { + Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + Moonshine.MaxLifePercentBoost)); + } // PostUpdateMiscEffects runs after the cap has been applied. Do NOT put mining speed stuff there. diff --git a/Items/Potions/Alcohol/Moonshine.cs b/Items/Potions/Alcohol/Moonshine.cs index 72b5de8c54..1cb08c989b 100644 --- a/Items/Potions/Alcohol/Moonshine.cs +++ b/Items/Potions/Alcohol/Moonshine.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Potions.Alcohol { public new string LocalizationCategory => "Items.Potions"; - public static float MaxLifePercentBoost = 0.33f; + public static float MaxLifePercentBoost = 0.25f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxLifePercentBoost.ToPercent()); public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Moonshine.DripEffect").WithFormatArgs(MaxLifePercentBoost.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Moonshine; From 77a40b512141a5561392429df9f230acbc5bdc6e Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 7 Apr 2026 21:38:19 -0400 Subject: [PATCH 12/28] corrected remaining merge issues --- CalPlayer/CalamityPlayerLifeRegen.cs | 4 +++- Items/Potions/Alcohol/GrapeBeer.cs | 14 +++++++------- Localization/en-US/Mods.CalamityMod.Buffs.hjson | 2 +- Projectiles/CalamityGlobalProjectile.cs | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 0fc8e3e756..7adcba0064 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -346,8 +346,9 @@ namespace CalamityMod.CalPlayer if (tequilaSunrise) Player.lifeRegenTime += 1800; - } + } + var dripPlayer = Player.GetModPlayer(); if (dripPlayer.HasAlcohol(AlcoholType.TequilaSunrise)) { @@ -357,6 +358,7 @@ namespace CalamityMod.CalPlayer } } + #endregion // During Silva revive or God Slayer dash, all negative life regen is canceled diff --git a/Items/Potions/Alcohol/GrapeBeer.cs b/Items/Potions/Alcohol/GrapeBeer.cs index d34af0cf49..d7aa12f70d 100644 --- a/Items/Potions/Alcohol/GrapeBeer.cs +++ b/Items/Potions/Alcohol/GrapeBeer.cs @@ -1,7 +1,6 @@ using System; using CalamityMod.Buffs.Alcohol; using CalamityMod.Items.Accessories; -using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -14,18 +13,19 @@ namespace CalamityMod.Items.Potions.Alcohol { public new string LocalizationCategory => "Items.Potions"; - public static float CritLoss = 50; - public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(CritLoss); - public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.GrapeBeer.DripEffect").WithFormatArgs(CritLoss); + public static float CloseRangeDistance = 80; + public static float LongRangeDistance = 1200; + public static float CloseRangeDamage = 0.75f; + public static float LongRangeDamage = 0.25f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(LongRangeDamage, LongRangeDistance / 16f); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.GrapeBeer.DripEffect").WithFormatArgs(LongRangeDamage, LongRangeDistance / 16f); public AlcoholType AlcoholVariant => AlcoholType.GrapeBeer; public Action IVDripAlcoholEffect => ApplyGrapeBeerEffect; private static void ApplyGrapeBeerEffect(Player player, float intensity) { - var cplayer = player.Calamity(); - cplayer.critDamage -= GrapeBeer.CritLoss * 0.01f; - // Also see CalamityGlobalProjectile + // See CalamityGlobalProjectile } public override void SetStaticDefaults() { diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 5e759c4d25..afe87854fb 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -76,7 +76,7 @@ OldFashionedBuff: { RedWineBuff: { DisplayName: Red Wine Description: Increased vertical speed, reduced flight time - ItemTooltip: Causes Baguette to heal 200 HP, but reduce regeneration by 2 HP/s for 15 seconds + ItemTooltip: Causes Baguette to heal 200 HP, but reduce regeneration by 2 HP/s for 15 seconds } RumBuff: { diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index c6e5e58f28..6eea6d3d37 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -337,7 +337,7 @@ namespace CalamityMod.Projectiles { grapeBeer = true; var ivDripPlayer = Main.player[projectile.owner].GetModPlayer(); - conditionalHomingRange = ivDripPlayer.HasAlcohol(AlcoholType.GrapeBeer) ? 1800 : 600; + conditionalHomingRange = ivDripPlayer.HasAlcohol(AlcoholType.GrapeBeer) ? 1800 : 300; if (projectile.timeLeft > 300 * projectile.MaxUpdates) projectile.timeLeft = 300 * projectile.MaxUpdates; //Calamity adds a hybrid iframe system when both local and static are set to true, so this works fine for both global and static projectiles. From 06257fbb9da1b605a5c43d25d1268c54b06b7806 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Wed, 8 Apr 2026 01:26:26 -0400 Subject: [PATCH 13/28] new grape beer integration --- Localization/en-US/Mods.CalamityMod.Items.Potions.hjson | 5 +++-- Projectiles/CalamityGlobalProjectile.cs | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 46b96ecbbd..9ce60ece46 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -274,8 +274,9 @@ GrapeBeer: { DripEffect: ''' Bullets, Arrows, Darts, and Rockets gain homing - {0}% reduced critical strike damage - When combined with drinking Grape Beer straight, greatly increases homing range and critical strike damage loss + Projectiles deal less damage the further the enemy is + This reaches a minimum of {0}x damage at {1} tiles away + When combined with drinking Grape Beer straight, homing range is increased ''' } diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 6eea6d3d37..b6030da0b1 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -337,7 +337,7 @@ namespace CalamityMod.Projectiles { grapeBeer = true; var ivDripPlayer = Main.player[projectile.owner].GetModPlayer(); - conditionalHomingRange = ivDripPlayer.HasAlcohol(AlcoholType.GrapeBeer) ? 1800 : 300; + conditionalHomingRange = ivDripPlayer.HasAlcohol(AlcoholType.GrapeBeer) ? 800 : 300; if (projectile.timeLeft > 300 * projectile.MaxUpdates) projectile.timeLeft = 300 * projectile.MaxUpdates; //Calamity adds a hybrid iframe system when both local and static are set to true, so this works fine for both global and static projectiles. @@ -4328,10 +4328,10 @@ namespace CalamityMod.Projectiles grapeBeerHomingPower = 0.015f; } - HomingTarget = grapeBeerHomingTarget = target.whoAmI; + HomingTarget = grapeBeerHomingTarget = target.whoAmI; Vector2 targetDirection = projectile.SafeDirectionTo(target.Center); - float trackingSpeed = grapeBeerHomingPower;// Vector2.Dot(targetDirection, projectile.velocity.SafeNormalize(Vector2.UnitX)) > 0.835f ? 0.01325f : 0f; // Delicate values, please test changes you make to them + float trackingSpeed = grapeBeerHomingPower; var currVelocity = projectile.velocity.Length(); if (currVelocity < 8) From 08e1978c50e8796652c65c166a393b86fa2b5bed Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Sat, 18 Apr 2026 23:44:38 -0400 Subject: [PATCH 14/28] SBR support --- CalPlayer/CalamityPlayerMiscEffects.cs | 5 +++++ Items/Potions/Alcohol/StarBeamRye.cs | 2 +- Localization/en-US/Mods.CalamityMod.Items.Potions.hjson | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index a0258ce628..842efd4880 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3588,6 +3588,11 @@ namespace CalamityMod.CalPlayer Player.manaRegenCount += StarBeamRye.ManaRegenBoost; Player.GetDamage() *= StarBeamRye.MagicDmgMult; } + if (dripPlayer.HasAlcohol(AlcoholType.StarBeamRye)) + { + Player.manaRegenCount += StarBeamRye.ManaRegenBoost; + Player.GetDamage() *= StarBeamRye.MagicDmgMult; + } if (whiteWine || dripPlayer.HasAlcohol(AlcoholType.WhiteWine)) { diff --git a/Items/Potions/Alcohol/StarBeamRye.cs b/Items/Potions/Alcohol/StarBeamRye.cs index 3cd5ec0edb..27a3a55859 100644 --- a/Items/Potions/Alcohol/StarBeamRye.cs +++ b/Items/Potions/Alcohol/StarBeamRye.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions.Alcohol private static void ApplyStarBeamRyeEffect(Player player, float intensity) { - // out of order 20 defense + // See CalamityPlayerMiscEffects } public override void SetStaticDefaults() { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 9ce60ece46..2e6759ff98 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -434,7 +434,11 @@ StarBeamRye: { Magic weapons deal {0}x damage {$Common.AlcoholWarning} ''' - DripEffect: Strangely, you feel no different... + DripEffect: + ''' + Increases Mana regeneration, even while using an item + Magic weapons deal {0}x damage + ''' } Tequila: { From 5bcf8b6fb8b9c24d04c7f5d443a8ab5082d392be Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Sun, 19 Apr 2026 02:01:27 -0400 Subject: [PATCH 15/28] Reforge fix --- Items/Accessories/IVDripOnTheRocks.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Items/Accessories/IVDripOnTheRocks.cs b/Items/Accessories/IVDripOnTheRocks.cs index c9495b3800..2c5d3cd058 100644 --- a/Items/Accessories/IVDripOnTheRocks.cs +++ b/Items/Accessories/IVDripOnTheRocks.cs @@ -149,7 +149,17 @@ namespace CalamityMod.Items.Accessories } } #endregion + public override void PreReforge() + { + if (containedAlcoholID != -1) + { + // Refund the alcohol to the player. + Main.LocalPlayer.QuickSpawnItem(Main.LocalPlayer.GetSource_ItemUse(Item), containedAlcoholID); + containedAlcoholID = -1; + currentAlcoholType = AlcoholType.None; + } + } public override void UpdateAccessory(Player player, bool hideVisual) { IVDripPlayer dripPlayer = player.GetModPlayer(); From a6614e42e4de6eb9ae0d955eb28e1126a705d7db Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Sun, 19 Apr 2026 04:57:28 -0400 Subject: [PATCH 16/28] Vanilla alcohol support Placeholder sprite --- CalPlayer/CalamityPlayerMiscEffects.cs | 6 +++ Items/Accessories/IVDripOnTheRocks.cs | 44 +++++++++--------- Items/Accessories/IVDripOnTheRocks.png | Bin 16240 -> 16887 bytes Items/CalamityGlobalItem.cs | 2 + .../Mods.CalamityMod.Items.Accessories.hjson | 1 + Utilities/PlayerUtils.cs | 3 +- 6 files changed, 33 insertions(+), 23 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 842efd4880..2bd57c4557 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3594,6 +3594,12 @@ namespace CalamityMod.CalPlayer Player.GetDamage() *= StarBeamRye.MagicDmgMult; } + if (dripPlayer.HasAlcohol(AlcoholType.Ale) || dripPlayer.HasAlcohol(AlcoholType.Sake)) + { + Player.GetAttackSpeed() -= 0.1f; + // See CalamityGlobalItem and PlayerUtils for Ale's melee size increase + } + if (whiteWine || dripPlayer.HasAlcohol(AlcoholType.WhiteWine)) { if (whiteWine) diff --git a/Items/Accessories/IVDripOnTheRocks.cs b/Items/Accessories/IVDripOnTheRocks.cs index 2c5d3cd058..9215e81efd 100644 --- a/Items/Accessories/IVDripOnTheRocks.cs +++ b/Items/Accessories/IVDripOnTheRocks.cs @@ -1,9 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using CalamityMod.Items.Materials; -using CalamityMod.Items.Potions.Alcohol; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -16,7 +13,6 @@ using Terraria.UI; namespace CalamityMod.Items.Accessories { - public enum AlcoholType { None, @@ -42,7 +38,8 @@ namespace CalamityMod.Items.Accessories Vodka, Whiskey, WhiteWine, - Ale // DOES NOT USE IALCOHOLITEM YET + Ale, + Sake } public interface IAlcoholItem @@ -50,7 +47,6 @@ namespace CalamityMod.Items.Accessories Action IVDripAlcoholEffect { get; } AlcoholType AlcoholVariant { get; } LocalizedText DripEffectText { get; } - } public class IVDripOnTheRocks : ModItem, ILocalizedModType @@ -61,7 +57,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new Terraria.DataStructures.DrawAnimationVertical(1, 24)); + Main.RegisterItemAnimation(Item.type, new Terraria.DataStructures.DrawAnimationVertical(1, 25)); ItemID.Sets.AnimatesAsSoul[Item.type] = true; } @@ -91,13 +87,19 @@ namespace CalamityMod.Items.Accessories Item mouseItem = Main.mouseItem; Item targetItem = inv[slot]; + // Vanilla alcohols have to be applied manually + bool isMouseAle = mouseItem.type == ItemID.Ale; + bool isTargetAle = targetItem.type == ItemID.Ale; + bool isMouseSake = mouseItem.type == ItemID.Sake; + bool isTargetSake = targetItem.type == ItemID.Sake; + // Alcohol into this acc - if (targetItem.ModItem is IVDripOnTheRocks drip && mouseItem.ModItem is IAlcoholItem alcohol) + if (targetItem.ModItem is IVDripOnTheRocks drip && (mouseItem.ModItem is IAlcoholItem || isMouseAle || isMouseSake)) { if (drip.containedAlcoholID == -1) { drip.containedAlcoholID = mouseItem.type; - drip.currentAlcoholType = alcohol.AlcoholVariant; + drip.currentAlcoholType = isMouseAle ? AlcoholType.Ale : (isMouseSake ? AlcoholType.Sake : (mouseItem.ModItem as IAlcoholItem).AlcoholVariant); mouseItem.stack--; if (mouseItem.stack <= 0) @@ -108,12 +110,12 @@ namespace CalamityMod.Items.Accessories } } - if (mouseItem.ModItem is IVDripOnTheRocks dripHeld && targetItem.ModItem is IAlcoholItem alcoholTarget) + if (mouseItem.ModItem is IVDripOnTheRocks dripHeld && (targetItem.ModItem is IAlcoholItem || isTargetAle || isTargetSake)) { if (dripHeld.containedAlcoholID == -1) { dripHeld.containedAlcoholID = targetItem.type; - dripHeld.currentAlcoholType = alcoholTarget.AlcoholVariant; + dripHeld.currentAlcoholType = isTargetAle ? AlcoholType.Ale : (isTargetSake ? AlcoholType.Sake : (targetItem.ModItem as IAlcoholItem).AlcoholVariant); targetItem.stack--; if (targetItem.stack <= 0) @@ -124,7 +126,6 @@ namespace CalamityMod.Items.Accessories } } } - return orig(inv, context, slot); } @@ -160,6 +161,7 @@ namespace CalamityMod.Items.Accessories currentAlcoholType = AlcoholType.None; } } + public override void UpdateAccessory(Player player, bool hideVisual) { IVDripPlayer dripPlayer = player.GetModPlayer(); @@ -174,6 +176,7 @@ namespace CalamityMod.Items.Accessories dripPlayer.ApplyIVDripAlcoholEffect(alcohol.IVDripAlcoholEffect); } } + public override void ModifyTooltips(List tooltips) { if (tooltips == null) return; @@ -194,11 +197,14 @@ namespace CalamityMod.Items.Accessories if (effectLine != null) { - Item alcoholItem = new Item(containedAlcoholID); + if (containedAlcoholID == ItemID.Ale || containedAlcoholID == ItemID.Sake) + effectLine.Text = this.GetLocalizedValue("SakeAndAleText"); - if (alcoholItem.ModItem is IAlcoholItem alcohol) + else { - effectLine.Text = alcohol.DripEffectText.Value; + Item alcoholItem = new Item(containedAlcoholID); + if (alcoholItem.ModItem is IAlcoholItem alcohol) + effectLine.Text = alcohol.DripEffectText.Value; } } @@ -214,7 +220,7 @@ namespace CalamityMod.Items.Accessories { Texture2D texture = TextureAssets.Item[Item.type].Value; - int frameHeight = texture.Height / 24; + int frameHeight = texture.Height / 25; int frameIndex = (int)currentAlcoholType; Rectangle targetFrame = new Rectangle(0, frameIndex * frameHeight, texture.Width, frameHeight); @@ -261,11 +267,5 @@ namespace CalamityMod.Items.Accessories effect.Key.Invoke(Player, effect.Value); } } - - // For specific interactions not handled elsewhere. - public override void UpdateEquips() - { - base.UpdateEquips(); - } } } diff --git a/Items/Accessories/IVDripOnTheRocks.png b/Items/Accessories/IVDripOnTheRocks.png index 5a08694ae729d11d6d082e6cffee51beaf1010cd..9c4ae3140130459ea36a75ccce679d419356c917 100644 GIT binary patch literal 16887 zcmb7sc{r5&ANC`albW0si3z8TB9vuhuY_c)h_a?^LxZw5_Tw}yNFh5z)~uzmFHi zRT_eJ?)_sY_!GCc^jq+S$>D~|B`B-@$S?%`1*u-XsN)(v9`oo9drLbVpZeF!caQ5X z{IUJb8K%p+`wkv-$;`_-b*x1{OgNMzY&SaT(UNCvqn2cy`~2zCQ$I-h?4Nd|{*`mu z;1n(NonqTX=I|a~!Xw*t(TCqGB!|NK+Z|H#c(&uHpA z9wwRUos>lN&VIa)|4L69Yg7rX+kgq8aEKG-v1OiN>9jGC_Fd4eGV3Svvr1og=dS7u z-n%y!5@%b>*Z!Tt%aP*ZduEl=Zppy}k@M=9pq1ssi{w?ex$&D!kl$dthF_z9u(?9# z>KrknGLU;sxr5U4ln^jm&vPl+u4LK}`j~CUW!9ax?XEafo1^`x)6+BXjWOgcY>9&) z$H|L>qmn3A=zNKrPCuYolk)t*zljj7!XM3+Tl+QH-BOOsd`C?xzkPsI4 z_GY@SvZX|A&bM%}Kkteg)hkTW*r6%Bi2OF_R;ioc!lPu3nbok2C}>2 zI`N~CEKCrQE~lJ606u#Bgu5$TI=Rbm{@Pl&xJ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E32g1!YBD{o|A4Vs;X`H)xrtG^lgg&IVs=B(79!7d!ZdqP7Bb?sVwZ<3EtqA(D5i=>f7zW zyCc#5@ZTHeC!{S!kS9|3*>IlcvKRokbl&kKv86-#pg!j8%I?PGE$dqYteNZQg%5c^ z&$nSyZ{SfP`{a?uGjsNrlM6O`<}wr&H^{&k+!INIfsxE3Ep>3^>NcjY_cH3{veKt3 z3i~#a!#DBJy?|Dp(=C1Wc;=OZqcwyFJhdUT|4o^=^Yip=UpWLY*ohJEb1P%jBf%4T OK;^o|wd||+|N1}Y)1p}b diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index d587c56e2b..5210b43370 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -941,6 +941,8 @@ namespace CalamityMod.Items // Xyk 3MARCH2026: Doesn't work on any non use style 1 items currently, Doze will fix it if (item.CountsAsClass() && player.HasBuff(BuffID.Tipsy)) scale += 0.15f; + if (item.CountsAsClass() && (player.GetModPlayer().HasAlcohol(AlcoholType.Ale) || player.GetModPlayer().HasAlcohol(AlcoholType.Sake))) + scale += 0.15f; } public override void UpdateArmorSet(Player player, string set) { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 76cce49cd1..a62f4832d3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1037,6 +1037,7 @@ IVDripOnTheRocks: { '(drunken mumbling)' ''' Empty: The drip is currently empty. + SakeAndAleText: Increases melee weapon scale by 15%, but decreases melee speed by 10% } JellyChargedBattery: { diff --git a/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index 0db89dd408..6cdb40503e 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -150,7 +150,8 @@ namespace CalamityMod if (player.HasBuff(BuffID.Tipsy)) baseScale += 0.15f; - + if (player.GetModPlayer().HasAlcohol(AlcoholType.Ale) || player.GetModPlayer().HasAlcohol(AlcoholType.Sake)) + baseScale += 0.15f; return baseScale; } From 2d0dae42792c0812b38619e44f5d0eb962e63d14 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Mon, 20 Apr 2026 01:02:13 -0400 Subject: [PATCH 17/28] Proper Sake variant sprite --- Items/Accessories/IVDripOnTheRocks.png | Bin 16887 -> 16939 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Items/Accessories/IVDripOnTheRocks.png b/Items/Accessories/IVDripOnTheRocks.png index 9c4ae3140130459ea36a75ccce679d419356c917..452d80ed709c427425e382b6f8a79fe9b4b4e97c 100644 GIT binary patch literal 16939 zcmbWfc{G&${|9_Yr44tv%QB&Ep$%mj*(*h|C0q7no55JJucK{BkusL-Yt}3=Gq#vY zCF?L_9ec_?b_Roat|8U^d%ov9_j&%fjt}K1u8~hhSZ9m>F5{$90Sy@T+;K7rzCg<9d7HQO{z_s z&O-;&;$H;Etx3OlNjGV;M0@qRNdN;q_oK)oq;`atN0P$pZUCq^aKZ*w6?)&pCDr*m zh9v&o8rpRN5MIRPr^^q8`~zI1Ep-7w{fXypRUoIC0?shq9^~{S-H{xUEaIQ? zA)jg=Qf2o~qs%*hIy&@DqDh$4VdljK43tP8fI92%J zf**PXC1MN!Y?GZ#deVppn_?Vint9jKkGlxEvv$=^z1;P_gpzlM0MY4wL3o9<(fW7K z7*=Kr=C(RpLZ7?)?8gGMVl-Eyq+^jo5{X#;9Lb?k-O;OpokV?#x$}3{-ZaPWFLeY? zGYzzIh|klZuKaDf--CHBL38a$g+&ayMrh9pOR<9`w{#5xbrzRjQ3un^YaMPf z0Vlh4#YiQ)0r|CY_X+>m=D-BBxv)y*UE^n_!238|JL}bUo--X3ET8nmZk3RBg9dV2 z4}QLmg$W>SC>Z4au(DdfPbpz^FIl;thQ%*=&^_oW=B{VcA|oT)mrj!ujuyCtjgCL- zX}t8g<7C{ssS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nGH#?XEAZ=+xXEo0A{z~Zrb@P^?fKDD0V^!FDcA^6>OgN9 z26Szd1!{C#qBcY|U8q2V0a>!=wZO|3 zY`{F-4CIGCxkw!`eTkIyiF=BWpZs}|jIl{xKXSP2>jQZ+j>)2@96>R1#Gs?$aEw3g z4*RvQn>lx3U-!O$+1wpYaseHn_$^u+A}3cAWec6Pz)&Vx||Y|33!04AwJBV?PzK3v1qqn^4{Vy zA7>>qE6;P8PxC#Zh>2X4JaE)T$y!Iu^GK;F-}*@#Pn&No5a;>< z#NN4qnr3hS(L6ZaFYG^#JZR5*w{60Z)0trO8w{7|UX;6^q&|m=g5Tr-sVZq+&boBx G@Baf-Rr>Y- From 00848561b139cd78a8ef851f204ef9b0cc1a1ac9 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Wed, 22 Apr 2026 00:57:58 -0400 Subject: [PATCH 18/28] SBR Formatting fix --- Items/Potions/Alcohol/StarBeamRye.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Potions/Alcohol/StarBeamRye.cs b/Items/Potions/Alcohol/StarBeamRye.cs index 27a3a55859..b0f4a4318f 100644 --- a/Items/Potions/Alcohol/StarBeamRye.cs +++ b/Items/Potions/Alcohol/StarBeamRye.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static int ManaRegenBoost = 30; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MagicDmgMult); public AlcoholType AlcoholVariant => AlcoholType.StarBeamRye; - public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.StarBeamRye.DripEffect"); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.StarBeamRye.DripEffect").WithFormatArgs(MagicDmgMult); public Action IVDripAlcoholEffect => ApplyStarBeamRyeEffect; From 026ba246e252184c9c171891378fb3f69d978740 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 11:52:45 -0400 Subject: [PATCH 19/28] update cinnamon roll to match changes --- CalPlayer/CalamityPlayerMiscEffects.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 00b9e78fce..cfb52baeb9 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -569,9 +569,9 @@ namespace CalamityMod.CalPlayer if (Player.GetModPlayer().HasAlcohol(AlcoholType.CinnamonRoll) && !(Main.getGoodWorld && Main.npc.Any(x => x.active && x.type == ModContent.NPCType()))) { if (dashStart) - Player.velocity.X *= 3; + Player.velocity.X *= 2f; else if (Player.dashDelay == -1) - Player.velocity.X *= 0.8f; + Player.velocity.X *= 0.825f; } if (Player.dashDelay == -1) From 1d92c6cc7a19428a6ecc5854b47c1db99526fc35 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 12:03:27 -0400 Subject: [PATCH 20/28] Localization-friendly text --- Items/Accessories/IVDripOnTheRocks.cs | 2 +- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Items/Accessories/IVDripOnTheRocks.cs b/Items/Accessories/IVDripOnTheRocks.cs index 9215e81efd..97aafbb425 100644 --- a/Items/Accessories/IVDripOnTheRocks.cs +++ b/Items/Accessories/IVDripOnTheRocks.cs @@ -211,7 +211,7 @@ namespace CalamityMod.Items.Accessories if (nameLine != null) { string alcoholName = Lang.GetItemNameValue(containedAlcoholID); - nameLine.Text = $"Currently filled with [c/FF81E4:{alcoholName}]"; + nameLine.Text = this.GetLocalizedValue("CurrentAlcoholText") + $" [c/FF81E4:{alcoholName}]"; } } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 42fced12d9..99b6703b92 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1040,7 +1040,8 @@ IVDripOnTheRocks: { [c/aaaaaa:Shift- this item in your inventory to empty its contents] '(drunken mumbling)' ''' - Empty: The drip is currently empty. + Empty: The IV drip is currently empty. + CurrentAlcoholText: Filled with SakeAndAleText: Increases melee weapon scale by 15%, but decreases melee speed by 10% } From cbe611c2a3041b34ffe5dbbfc7ea01bf5a1f91dd Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 12:19:02 -0400 Subject: [PATCH 21/28] double mary nerf --- Localization/en-US/Mods.CalamityMod.Items.Potions.hjson | 2 +- NPCs/CalamityGlobalNPC.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index a8b22030d9..e91dcd5325 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -195,7 +195,7 @@ BloodyMary: { ''' Increases enemy spawn rates by 7x Greatly reduces piercing weapon effectiveness - When combined with drinking Bloody Mary straight, enemy spawn rates are increased by 14x total + When combined with drinking Bloody Mary straight, enemy spawn rates are increased by 10x total ''' } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 56492d0972..4f844c31c3 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -4251,7 +4251,7 @@ namespace CalamityMod.NPCs // Only when BOTH effects are active, also applies the previous spawn rate and limit boosts multiplicatively if (player.Calamity().bloodyMary && player.GetModPlayer().HasAlcohol(AlcoholType.BloodyMary)) { - spawnRate = (int)(spawnRate * BloodyMary.IVDripAdditionalSpawnRateGateMultiplier); // 1.667x spawn rate + spawnRate = (int)(spawnRate * BloodyMary.IVDripAdditionalSpawnRateGateMultiplier); // 1.429x spawn rate, total of 10x maxSpawns = (int)(maxSpawns * BloodyMary.IVDripAdditionalSpawnLimitMultiplier); // 1.5x spawn rate cap } From f5b9c4855b223c21ccce046228a9e8ecf5c3e505 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 12:24:40 -0400 Subject: [PATCH 22/28] oversight --- Items/Potions/Alcohol/BloodyMary.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Potions/Alcohol/BloodyMary.cs b/Items/Potions/Alcohol/BloodyMary.cs index 3f4b89888b..84c40f44c0 100644 --- a/Items/Potions/Alcohol/BloodyMary.cs +++ b/Items/Potions/Alcohol/BloodyMary.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Potions.Alcohol public static float PierceDamageMultiplier = 0.66f; public static float SpawnRateGateMultiplier = 0.142f; - public static float IVDripAdditionalSpawnRateGateMultiplier = 0.6f; + public static float IVDripAdditionalSpawnRateGateMultiplier = 0.7f; public static float SpawnLimitMultiplier = 5f; public static float IVDripAdditionalSpawnLimitMultiplier = 1.5f; public override LocalizedText Tooltip => base.Tooltip; From 9dff48a6a37697911f2053642632b30768fd4ca9 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 12:41:55 -0400 Subject: [PATCH 23/28] everclear fix/change --- CalPlayer/CalamityPlayerLifeRegen.cs | 2 +- CalPlayer/CalamityPlayerMiscEffects.cs | 6 ++++++ Localization/en-US/Mods.CalamityMod.Items.Potions.hjson | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index f3639bbcb7..ec21812c99 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -194,7 +194,7 @@ namespace CalamityMod.CalPlayer { int buff = Player.buffType[l]; if (BuffDatasets.DebuffDataset[buff] is not null && BuffDatasets.DebuffDataset[buff].AlcoholLevel > 0) - alcoholPoisonLevel += BuffDatasets.DebuffDataset[buff].AlcoholLevel; + alcoholPoisonLevel += BuffDatasets.DebuffDataset[buff].AlcoholLevel + (Player.GetModPlayer().HasAlcohol(AlcoholType.Everclear) ? 1 : 0); } if (Player.Calamity().ivDrip) // +1 stack of poisoning while IV Drip is equipped alcoholPoisonLevel++; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index cfb52baeb9..8da5444ed7 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -4778,6 +4778,12 @@ namespace CalamityMod.CalPlayer if (Player.statDefense > 0) Player.statDefense -= (int)(Player.statDefense * Everclear.DefenseLossPercent); } + if (Player.GetModPlayer().HasAlcohol(AlcoholType.Everclear)) + { + if (Player.statDefense > 0) + Player.statDefense -= (int)(Player.statDefense * Everclear.DefenseLossPercent); + } + if (DesertProwlerHat.ShroudedInSmoke(Player, out _)) Player.statDefense -= (int)(Player.statDefense * DesertProwlerHat.SmokeDefenseMult); } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index e91dcd5325..5ef02b415f 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -242,7 +242,7 @@ Everclear: { ''' {0}% increased damage Reduces life regen by {1} HP/s and defense by {2}% - When combined with drinking Everclear straight, additionally reduce count for {$Buffs.AlcoholPoisoning.DisplayName} by 1 + Counts as giving an additional stack of alcohol for {$Buffs.AlcoholPoisoning.DisplayName} ''' } From cbe65691ef63ecadb54b45a0542952c01fcd03a9 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 12:45:50 -0400 Subject: [PATCH 24/28] wh --- Localization/en-US/Mods.CalamityMod.Items.Potions.hjson | 1 - 1 file changed, 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 5ef02b415f..66603efd5d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -391,7 +391,6 @@ PurpleHaze: { DripEffect: ''' For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% - Greatly reduces dash distance ''' } From 36acd1691410078eb13a00d6818f96d19fc92ce0 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 13:49:30 -0400 Subject: [PATCH 25/28] highlighted fix --- CalPlayer/CalamityPlayer.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index ca293f6371..d9ad19e792 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5011,14 +5011,12 @@ namespace CalamityMod.CalPlayer TimeHoldingRogue++; if (TimeHoldingRogue > Whiskey.TimeToDischarge) TimeHoldingRogue = (int)Whiskey.TimeToDischarge; - if ((whiskey ^ dripPlayer.HasAlcohol(AlcoholType.Whiskey))) - { + + if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.IVDripDamageCeiling, Whiskey.IVDripDamageFloor, TimeHoldingRogue / Whiskey.TimeToDischarge); + else if (whiskey || dripPlayer.HasAlcohol(AlcoholType.Whiskey)) Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingRogue / Whiskey.TimeToDischarge); - } - else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) - { - Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingRogue / Whiskey.TimeToDischarge); - } + } else { From 610332ac273711067ace41b134d45bfd10d22c73 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 14:00:42 -0400 Subject: [PATCH 26/28] Whiskey fixes again --- CalPlayer/CalamityPlayer.cs | 4 ++-- Items/Potions/Alcohol/Whiskey.cs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index d9ad19e792..7ee13336fe 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5013,9 +5013,9 @@ namespace CalamityMod.CalPlayer TimeHoldingRogue = (int)Whiskey.TimeToDischarge; if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) - Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.IVDripDamageCeiling, Whiskey.IVDripDamageFloor, TimeHoldingRogue / Whiskey.TimeToDischarge); + Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.CombinedDamageCeiling, Whiskey.CombinedDamageFloor, TimeHoldingRogue / Whiskey.TimeToDischarge); else if (whiskey || dripPlayer.HasAlcohol(AlcoholType.Whiskey)) - Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingRogue / Whiskey.TimeToDischarge); + Player.GetDamage(RogueDamageClass.Instance) += MathHelper.Lerp(Whiskey.StandardDamageCeiling, Whiskey.StandardDamageFloor, TimeHoldingRogue / Whiskey.TimeToDischarge); } else diff --git a/Items/Potions/Alcohol/Whiskey.cs b/Items/Potions/Alcohol/Whiskey.cs index eb80d56101..04ec8d970e 100644 --- a/Items/Potions/Alcohol/Whiskey.cs +++ b/Items/Potions/Alcohol/Whiskey.cs @@ -14,15 +14,15 @@ namespace CalamityMod.Items.Potions.Alcohol { public new string LocalizationCategory => "Items.Potions"; - public static float MaxDamageCeiling = 0.15f; - public static float MinDamageFloor = -0.15f; + public static float StandardDamageCeiling = 0.15f; + public static float StandardDamageFloor = -0.15f; public static float TimeToDischarge = 600; public static float TimeToRecharge = 300; - public static float IVDripDamageCeiling = 0.3f; - public static float IVDripDamageFloor = -0.3f; + public static float CombinedDamageCeiling = 0.3f; + public static float CombinedDamageFloor = -0.3f; - public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinDamageFloor.ToPercent(), MaxDamageCeiling.ToPercent(), (TimeToDischarge/60).ToString("0.##"), (TimeToRecharge/60).ToString("0.##")); - public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Whiskey.DripEffect").WithFormatArgs(MinDamageFloor.ToPercent(), MaxDamageCeiling.ToPercent(), (TimeToDischarge / 60).ToString("0.##"), (TimeToRecharge / 60).ToString("0.##"), IVDripDamageFloor.ToPercent(), IVDripDamageCeiling.ToPercent()); + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(StandardDamageFloor.ToPercent(), StandardDamageCeiling.ToPercent(), (TimeToDischarge/60).ToString("0.##"), (TimeToRecharge/60).ToString("0.##")); + public LocalizedText DripEffectText => Language.GetText("Mods.CalamityMod.Items.Potions.Whiskey.DripEffect").WithFormatArgs(StandardDamageFloor.ToPercent(), StandardDamageCeiling.ToPercent(), (TimeToDischarge / 60).ToString("0.##"), (TimeToRecharge / 60).ToString("0.##"), CombinedDamageFloor.ToPercent(), CombinedDamageCeiling.ToPercent()); public AlcoholType AlcoholVariant => AlcoholType.Whiskey; public Action IVDripAlcoholEffect => ApplyWhiskeyEffect; From b21621ec2ecf13d6f5e779ee2448aa48f0c2d75c Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 15:47:03 -0400 Subject: [PATCH 27/28] Ctrl + S fail --- CalPlayer/CalamityPlayer.cs | 54 ++++++++----------- .../Mods.CalamityMod.Items.Potions.hjson | 5 +- 2 files changed, 22 insertions(+), 37 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 7ee13336fe..9da02a26bb 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -4931,14 +4931,11 @@ namespace CalamityMod.CalPlayer TimeHoldingMelee++; if (TimeHoldingMelee > Whiskey.TimeToDischarge) TimeHoldingMelee = (int)Whiskey.TimeToDischarge; - if (whiskey) - { - Player.GetDamage(DamageClass.Melee) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingMelee / Whiskey.TimeToDischarge); - } - else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) - { - Player.GetDamage(DamageClass.Melee) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingMelee / Whiskey.TimeToDischarge); - } + + if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + Player.GetDamage(DamageClass.Melee) += MathHelper.Lerp(Whiskey.CombinedDamageCeiling, Whiskey.CombinedDamageFloor, TimeHoldingMelee / Whiskey.TimeToDischarge); + else if (whiskey || dripPlayer.HasAlcohol(AlcoholType.Whiskey)) + Player.GetDamage(DamageClass.Melee) += MathHelper.Lerp(Whiskey.StandardDamageCeiling, Whiskey.StandardDamageFloor, TimeHoldingMelee / Whiskey.TimeToDischarge); } else { @@ -4950,15 +4947,12 @@ namespace CalamityMod.CalPlayer { TimeHoldingRanged++; if (TimeHoldingRanged > Whiskey.TimeToDischarge) - TimeHoldingRanged = (int)Whiskey.TimeToDischarge; - if (whiskey) - { - Player.GetDamage(DamageClass.Ranged) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingRanged / Whiskey.TimeToDischarge); - } - else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) - { - Player.GetDamage(DamageClass.Ranged) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingRanged / Whiskey.TimeToDischarge); - } + TimeHoldingRanged = (int)Whiskey.TimeToDischarge; + + if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + Player.GetDamage(DamageClass.Ranged) += MathHelper.Lerp(Whiskey.CombinedDamageCeiling, Whiskey.CombinedDamageFloor, TimeHoldingRanged / Whiskey.TimeToDischarge); + else if (whiskey || dripPlayer.HasAlcohol(AlcoholType.Whiskey)) + Player.GetDamage(DamageClass.Ranged) += MathHelper.Lerp(Whiskey.StandardDamageCeiling, Whiskey.StandardDamageFloor, TimeHoldingRanged / Whiskey.TimeToDischarge); } else { @@ -4971,14 +4965,11 @@ namespace CalamityMod.CalPlayer TimeHoldingMagic++; if (TimeHoldingMagic > Whiskey.TimeToDischarge) TimeHoldingMagic = (int)Whiskey.TimeToDischarge; - if (whiskey) - { - Player.GetDamage(DamageClass.Magic) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingMagic / Whiskey.TimeToDischarge); - } - else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) - { - Player.GetDamage(DamageClass.Magic) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingMagic / Whiskey.TimeToDischarge); - } + + if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + Player.GetDamage(DamageClass.Magic) += MathHelper.Lerp(Whiskey.CombinedDamageCeiling, Whiskey.CombinedDamageFloor, TimeHoldingMagic / Whiskey.TimeToDischarge); + else if (whiskey || dripPlayer.HasAlcohol(AlcoholType.Whiskey)) + Player.GetDamage(DamageClass.Magic) += MathHelper.Lerp(Whiskey.StandardDamageCeiling, Whiskey.StandardDamageFloor, TimeHoldingMagic / Whiskey.TimeToDischarge); } else { @@ -4991,14 +4982,11 @@ namespace CalamityMod.CalPlayer TimeHoldingSummon++; if (TimeHoldingSummon > Whiskey.TimeToDischarge) TimeHoldingSummon = (int)Whiskey.TimeToDischarge; - if (whiskey) - { - Player.GetDamage(DamageClass.Summon) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingSummon / Whiskey.TimeToDischarge); - } - else if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) - { - Player.GetDamage(DamageClass.Summon) += MathHelper.Lerp(Whiskey.MaxDamageCeiling, Whiskey.MinDamageFloor, TimeHoldingSummon / Whiskey.TimeToDischarge); - } + + if (dripPlayer.HasAlcohol(AlcoholType.Whiskey) && whiskey) + Player.GetDamage(DamageClass.Summon) += MathHelper.Lerp(Whiskey.CombinedDamageCeiling, Whiskey.CombinedDamageFloor, TimeHoldingSummon / Whiskey.TimeToDischarge); + else if (whiskey || dripPlayer.HasAlcohol(AlcoholType.Whiskey)) + Player.GetDamage(DamageClass.Summon) += MathHelper.Lerp(Whiskey.StandardDamageCeiling, Whiskey.StandardDamageFloor, TimeHoldingSummon / Whiskey.TimeToDischarge); } else { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 66603efd5d..dfc50640f6 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -388,10 +388,7 @@ PurpleHaze: { For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% {$Common.AlcoholWarning} ''' - DripEffect: - ''' - For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% - ''' + DripEffect: For 5 seconds after a stealth strike, all damage increased by {0}%, but stealth strike damage reduced by {1}% } RedWine: { From a4704686ecb5ac332606a9f95cc54adc84e45b9e Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 28 Apr 2026 16:22:26 -0400 Subject: [PATCH 28/28] undid chat tag removal --- Items/CalamityGlobalItemTooltip.cs | 29 ------------------- .../Mods.CalamityMod.Items.Accessories.hjson | 3 +- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 15bfa2b691..ee62c4b95a 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -1645,35 +1645,6 @@ namespace CalamityMod.Items return false; } - // IV Drip tooltip FX - if (line.Mod == "Terraria" && item.type == ModContent.ItemType() && line.Name == "Tooltip6") - { - Vector2 basePosition = new Vector2(line.X, line.Y); - - Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, null, null, null, null, Main.UIScaleMatrix); - - for (int i = 0; i < 3; i++) // Draw 3 lines of differing opacity, color, and displacement. - { - float timer = (float)Math.Sin(Main.GlobalTimeWrappedHourly + 1f) / 2f; - - float angle = (Main.GlobalTimeWrappedHourly * 2f) + (i * MathHelper.TwoPi / 3f); - float radius = timer * (3f + i * 6f); - Vector2 offset = new Vector2((float)Math.Cos(angle) * 1.7f, (float)Math.Sin(angle) * 1f) * radius; // Offset in an elliptical pattern - Vector2 pos = basePosition + offset; - - Color color = MulticolorLerp(Math.Abs(timer + (i * 0.2f)) % 1f, Color.LightBlue, Color.LightGreen, (i == 3) ? Color.Blue : (i == 2) ? Color.Red : Color.White); - float opacity = 1f - (i * 0.2f); - float rotation = line.Rotation + (timer * (Main.GlobalTimeWrappedHourly * 0.00001f)); // This precision is intended - - ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, line.Font, line.Text, pos, color * opacity, rotation, line.Origin, line.BaseScale, line.MaxWidth, line.Spread); - } - - Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, Main.UIScaleMatrix); - - return false; - } if (line.Mod == "Terraria" && item.type == ModContent.ItemType() && (line.Name == "Tooltip1" || line.Name == "Tooltip2" || line.Name == "Tooltip4" || line.Name == "Tooltip5" || line.Name == "Tooltip7")) { Color rarityColor = Color.Black; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 99b6703b92..180ccaa750 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1038,7 +1038,8 @@ IVDripOnTheRocks: { Drinking the same type of alcohol as in the IV drip does not contribute to Alcohol Poisoning {$Common.AlcoholWarning} [c/aaaaaa:Shift- this item in your inventory to empty its contents] - '(drunken mumbling)' + [ceffect/drunk:'(drunken mumbling)'] + ''' Empty: The IV drip is currently empty. CurrentAlcoholText: Filled with