diff --git a/Buffs/StatBuffs/Encased.cs b/Buffs/StatBuffs/Encased.cs index 34013fef8b..fc8282145b 100644 --- a/Buffs/StatBuffs/Encased.cs +++ b/Buffs/StatBuffs/Encased.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Buffs.StatBuffs { public class Encased : ModBuff { - public override LocalizedText Description => base.Description.WithFormatArgs(PermafrostsConcoction.EncasedDefenseBoost, PermafrostsConcoction.EncasedAllDamageReduction.ToPercent()); + public override LocalizedText Description => base.Description.WithFormatArgs(PermafrostsConcoction.EncasedDefenseBoost, PermafrostsConcoction.EncasedDamageReductionBoost.ToPercent()); public override void SetStaticDefaults() { diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index c03d2ce8a1..dabbc340d6 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -847,9 +847,6 @@ namespace CalamityMod.CalPlayer if (aquaticHeartIce) contactDamageReduction += AquaticHeart.IceShieldAllDamageReduction; - if (encased) - contactDamageReduction += PermafrostsConcoction.EncasedAllDamageReduction; - if (Player.ownedProjectileCounts[ModContent.ProjectileType()] > 0 && Player.ActiveItem().type == ModContent.ItemType()) contactDamageReduction += 0.5; @@ -1104,9 +1101,6 @@ namespace CalamityMod.CalPlayer if (aquaticHeartIce) projectileDamageReduction += AquaticHeart.IceShieldAllDamageReduction; - if (encased) - projectileDamageReduction += PermafrostsConcoction.EncasedAllDamageReduction; - if (Player.ownedProjectileCounts[ModContent.ProjectileType()] > 0 && Player.ActiveItem().type == ModContent.ItemType()) projectileDamageReduction += 0.5; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 21c849298e..32870bd348 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2768,6 +2768,7 @@ namespace CalamityMod.CalPlayer if (encased) { Player.statDefense += PermafrostsConcoction.EncasedDefenseBoost; + Player.endurance += PermafrostsConcoction.EncasedDamageReductionBoost; Player.frozen = true; Player.velocity.X = 0f; Player.velocity.Y = -0.4f; // Should negate gravity diff --git a/Items/Accessories/PermafrostsConcoction.cs b/Items/Accessories/PermafrostsConcoction.cs index 7b849b028e..2ca906ba88 100644 --- a/Items/Accessories/PermafrostsConcoction.cs +++ b/Items/Accessories/PermafrostsConcoction.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories internal static readonly int EncasedIFrames = 90; public static int EncasedDefenseBoost = 30; - public static double EncasedAllDamageReduction = 0.3D; + public static float EncasedDamageReductionBoost = 0.3f; public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() diff --git a/Localization/en-US/Mods.CalamityMod.Configs.hjson b/Localization/en-US/Mods.CalamityMod.Configs.hjson index 5f9216dff2..33dd1e7c77 100644 --- a/Localization/en-US/Mods.CalamityMod.Configs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Configs.hjson @@ -573,4 +573,9 @@ CalamityServerConfig: { } } -SetBonusDoubleTapOptions.Tooltip: "" +SetBonusDoubleTapOptions: { + Tooltip: "" + On.Tooltip: "" + Auto.Tooltip: "" + Off.Tooltip: "" +}