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;