From ee7c9587eb0f3c9810fa982a413d4f0a8b7724d3 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Sat, 28 Mar 2026 00:52:32 -0400 Subject: [PATCH] Grape Beer Re-re-revision no.1 --- Items/Potions/Alcohol/GrapeBeer.cs | 7 +++---- Projectiles/CalamityGlobalProjectile.cs | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Items/Potions/Alcohol/GrapeBeer.cs b/Items/Potions/Alcohol/GrapeBeer.cs index b6e73d84d2..e356a10ec1 100644 --- a/Items/Potions/Alcohol/GrapeBeer.cs +++ b/Items/Potions/Alcohol/GrapeBeer.cs @@ -11,10 +11,9 @@ namespace CalamityMod.Items.Potions.Alcohol public class GrapeBeer : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Potions"; - public static float CloseRangeDistance = 160; - public static float LongRangeDistance = 800; - public static float CloseRangeDamage = 1f; - public static float LongRangeDamage = 0.5f; + public static float LongRangeDistance = 1000; + public static float CloseRangeDamage = 0.8f; + public static float LongRangeDamage = 0.4f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(LongRangeDamage,LongRangeDistance/16f); public override void SetStaticDefaults() diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 052b17302a..8c979e578f 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -4619,7 +4619,7 @@ namespace CalamityMod.Projectiles if (grapeBeer) { var dis = target.Distance(Main.player[projectile.owner].Center); - float remap = Utils.Remap(dis, GrapeBeer.CloseRangeDistance, GrapeBeer.LongRangeDistance, GrapeBeer.CloseRangeDamage, GrapeBeer.LongRangeDamage); + float remap = Utils.Remap(dis, 0, GrapeBeer.LongRangeDistance, GrapeBeer.CloseRangeDamage, GrapeBeer.LongRangeDamage); modifiers.SourceDamage *= remap; }