Permafrost's Concoction provides regular DR instead of ADR
This commit is contained in:
1 parent
079e9cd0af
commit
2a7bf4e555
5 files changed
+9
-9
No files matched your search
@@ -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()
|
||||
{
|
||||
|
||||
@@ -847,9 +847,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (aquaticHeartIce)
|
||||
contactDamageReduction += AquaticHeart.IceShieldAllDamageReduction;
|
||||
|
||||
if (encased)
|
||||
contactDamageReduction += PermafrostsConcoction.EncasedAllDamageReduction;
|
||||
|
||||
if (Player.ownedProjectileCounts[ModContent.ProjectileType<EnergyShell>()] > 0 && Player.ActiveItem().type == ModContent.ItemType<LionHeart>())
|
||||
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<EnergyShell>()] > 0 && Player.ActiveItem().type == ModContent.ItemType<LionHeart>())
|
||||
projectileDamageReduction += 0.5;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -573,4 +573,9 @@ CalamityServerConfig: {
|
||||
}
|
||||
}
|
||||
|
||||
SetBonusDoubleTapOptions.Tooltip: ""
|
||||
SetBonusDoubleTapOptions: {
|
||||
Tooltip: ""
|
||||
On.Tooltip: ""
|
||||
Auto.Tooltip: ""
|
||||
Off.Tooltip: ""
|
||||
}
|
||||
Reference in new issue
Block a user