Moonshine HP adjust

This commit is contained in:
Xyk committed 2026-03-23 23:14:33 -07:00
1 parent 84a5f90149
commit 1161efea34
2 files changed
+13 -3

No files matched your search

+12 -2
View File
@@ -4840,8 +4840,14 @@ namespace CalamityMod.CalPlayer
}
}
}
if (moonshine || Player.GetModPlayer<IVDripPlayer>().HasAlcohol(AlcoholType.Moonshine))
Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1 + ((moonshine ? Moonshine.MaxLifePercentBoost : 1) * (Player.GetModPlayer<IVDripPlayer>().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.
+1 -1
View File
@@ -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;