From 6e4e1b68b7b31f314053e80fcae7fcbb8a80a3d1 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 11 Feb 2023 22:41:54 -0500 Subject: [PATCH] 1.4.4 port revert: Vanilla armor changes Changed mining set so that we don't mess with the mining speed at all --- Items/CalamityGlobalItemTweaks.cs | 23 +++++++++++++++---- .../CrimsonArmorSetChange.cs | 5 ++-- .../EskimoArmorSetChange.cs | 7 +++++- .../MiningArmorSetChange.cs | 10 +++----- 4 files changed, 31 insertions(+), 14 deletions(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index a733b29beb..f52ac8fe62 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -137,13 +137,28 @@ namespace CalamityMod.Items { ItemID.ChristmasTreeSword, Do(AutoReuse, UseTurn, UseMeleeSpeed, DamageExact(114)) }, { ItemID.ClingerStaff, Do(DamageExact(118)) }, { ItemID.ClockworkAssaultRifle, Do(PointBlank, DamageExact(21)) }, - { ItemID.CobaltBreastplate, Do(DefenseDelta(+1)) }, + + // TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT + { ItemID.CobaltBreastplate, Do(DefenseDelta(+3)) }, + // { ItemID.CobaltBreastplate, Do(DefenseDelta(+1)) }, + { ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1)) }, { ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5)) }, - { ItemID.CobaltHat, Do(DefenseDelta(+1)) }, - { ItemID.CobaltHelmet, Do(DefenseDelta(+2)) }, + + // TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT + { ItemID.CobaltHat, Do(DefenseDelta(+2)) }, + // { ItemID.CobaltHat, Do(DefenseDelta(+1)) }, + + // TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT + { ItemID.CobaltHelmet, Do(DefenseDelta(+4)) }, + // { ItemID.CobaltHelmet, Do(DefenseDelta(+2)) }, + { ItemID.CobaltLeggings, Do(DefenseDelta(+2)) }, - { ItemID.CobaltMask, Do(DefenseDelta(+2)) }, + + // TODO -- REPLACE WITH COMMENTED LINE IN 1.4.4 PORT + { ItemID.CobaltMask, Do(DefenseDelta(+3)) }, + // { ItemID.CobaltMask, Do(DefenseDelta(+2)) }, + { ItemID.CobaltNaginata, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(90)) }, { ItemID.CobaltPickaxe, Do(PickPower(130), UseTimeExact(9)) }, { ItemID.CobaltRepeater, Do(PointBlank, DamageExact(50), UseExact(20)) }, diff --git a/Items/VanillaArmorChanges/CrimsonArmorSetChange.cs b/Items/VanillaArmorChanges/CrimsonArmorSetChange.cs index 6a109faa4b..4ca629769a 100644 --- a/Items/VanillaArmorChanges/CrimsonArmorSetChange.cs +++ b/Items/VanillaArmorChanges/CrimsonArmorSetChange.cs @@ -19,8 +19,9 @@ namespace CalamityMod.Items.VanillaArmorChanges private void ApplyAnyPieceEffect(Player player) { - // Remove the vanilla +3% damage and add the new damage value at the same time - player.GetDamage() += ArmorPieceDamage - 0.03f; + // TODO -- CHANGE THIS TO 3% IN THE 1.4.4 PORT + // Remove the vanilla +2% damage and add the new damage value at the same time + player.GetDamage() += ArmorPieceDamage - 0.02f; // Give life regen player.lifeRegen += ArmorPieceLifeRegen; diff --git a/Items/VanillaArmorChanges/EskimoArmorSetChange.cs b/Items/VanillaArmorChanges/EskimoArmorSetChange.cs index 26e007cf58..198ea5aa23 100644 --- a/Items/VanillaArmorChanges/EskimoArmorSetChange.cs +++ b/Items/VanillaArmorChanges/EskimoArmorSetChange.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { - // Not sure why it doesn't say Set bonus automatically + // Not sure why it doesn't say Set bonus automatically setBonusText = "Set bonus: Multiplies all cold-based debuff damage by 1.25\n" + "Cold enemies will deal reduced contact damage to the player\n" + "Provides immunity to the Chilled, Frozen, Frostburn and Glacial State debuffs"; @@ -35,6 +35,11 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void ApplyArmorSetBonus(Player player) { player.Calamity().eskimoSet = true; + + // TODO -- DELETE THE FOLLOWING 2 LINES IN THE 1.4.4 PORT + player.buffImmune[BuffID.Chilled] = true; + player.buffImmune[BuffID.Frozen] = true; + player.buffImmune[BuffID.Frostburn] = true; player.buffImmune[ModContent.BuffType()] = true; } diff --git a/Items/VanillaArmorChanges/MiningArmorSetChange.cs b/Items/VanillaArmorChanges/MiningArmorSetChange.cs index cc84f145cd..ba6bafc054 100644 --- a/Items/VanillaArmorChanges/MiningArmorSetChange.cs +++ b/Items/VanillaArmorChanges/MiningArmorSetChange.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -15,22 +15,18 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Mining"; - public const float MiningSpeed = 0.2f; public const int BonusOreChance = 4; public const int CooldownMin = 180; public const int CooldownMax = 360; public override void UpdateSetBonusText(ref string setBonusText) { - setBonusText = setBonusText.Replace("10%", "20%"); - setBonusText += "\nMining ore will sometimes have additional yield"; + setBonusText += "\nMining ore will sometimes have additional yield"; } public override void ApplyArmorSetBonus(Player player) { - // Remove the vanilla +30% pick speed and add (subtract?) the new pick speed value at the same time - player.pickSpeed -= MiningSpeed + 0.1f; - player.Calamity().miningSet = true; + player.Calamity().miningSet = true; } } }