diff --git a/Items/Armor/DaedalusLeggings.cs b/Items/Armor/DaedalusLeggings.cs index f91b302d4e..1a520cb2ef 100644 --- a/Items/Armor/DaedalusLeggings.cs +++ b/Items/Armor/DaedalusLeggings.cs @@ -26,10 +26,7 @@ namespace CalamityMod.Items.Armor public override void UpdateEquip(Player player) { - player.meleeCrit += 3; - player.magicCrit += 3; - player.rangedCrit += 3; - player.Calamity().throwingCrit += 3; + player.Calamity().AllCritBoost(3); player.moveSpeed += 0.1f; } diff --git a/Items/Armor/VictideBreastplate.cs b/Items/Armor/VictideBreastplate.cs index 1f0515f813..ced886f11d 100644 --- a/Items/Armor/VictideBreastplate.cs +++ b/Items/Armor/VictideBreastplate.cs @@ -27,10 +27,7 @@ namespace CalamityMod.Items.Armor public override void UpdateEquip(Player player) { player.endurance += 0.05f; - player.meleeCrit += 5; - player.rangedCrit += 5; - player.Calamity().throwingCrit += 5; - player.magicCrit += 5; + player.Calamity().AllCritBoost(5); if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { player.statDefense += 5; diff --git a/Items/Armor/WulfrumArmor.cs b/Items/Armor/WulfrumArmor.cs index df509c8219..c5a633b03d 100644 --- a/Items/Armor/WulfrumArmor.cs +++ b/Items/Armor/WulfrumArmor.cs @@ -25,10 +25,7 @@ namespace CalamityMod.Items.Armor public override void UpdateEquip(Player player) { - player.meleeCrit += 3; - player.magicCrit += 3; - player.rangedCrit += 3; - player.Calamity().throwingCrit += 3; + player.Calamity().AllCritBoost(3); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Roxcalibur.cs b/Items/Weapons/Melee/Roxcalibur.cs index 2d6682b6a6..56848077a6 100644 --- a/Items/Weapons/Melee/Roxcalibur.cs +++ b/Items/Weapons/Melee/Roxcalibur.cs @@ -233,7 +233,7 @@ namespace CalamityMod.Items.Weapons.Melee if (Roxcooldown >= 600) { Roxcooldown = 0; - //"Why yes i did refresh the cooldown whatcha gonna do about it?" -cpntinues on OnHitNPC + //"Why yes i did refresh the cooldown whatcha gonna do about it?" -continues on OnHitNPC Didrefresh = true; } return false; @@ -257,18 +257,21 @@ namespace CalamityMod.Items.Weapons.Melee { if (item.useStyle == 4) { - //"Well you did refresh the cooldown but like i dont want it to be wasted on an enemy hit so imma ask you for a refund" - if (Didrefresh) - { - Roxcooldown = 600; - Didrefresh = false; - } - //End the alt attack - player.itemAnimation = 0; - player.itemTime = 0; - RoxAlt = false; - RoxCanUse = 0; - player.velocity.Y = -16f; + if (player.whoAmI == Main.myPlayer) + { + //"Well you did refresh the cooldown but like i dont want it to be wasted on a player hit so imma ask you for a refund" + if (Didrefresh) + { + Roxcooldown = 600; + Didrefresh = false; + } + //End the alt attack + player.itemAnimation = 0; + player.itemTime = 0; + RoxAlt = false; + RoxCanUse = 0; + player.velocity.Y = -16f; + } } } @@ -276,18 +279,21 @@ namespace CalamityMod.Items.Weapons.Melee { if (item.useStyle == 4) { - //"Well you did refresh the cooldown but like i dont want it to be wasted on a player hit so imma ask you for a refund" - if (Didrefresh) - { - Roxcooldown = 600; - Didrefresh = false; - } - //End the alt attack - player.itemAnimation = 0; - player.itemTime = 0; - RoxAlt = false; - RoxCanUse = 0; - player.velocity.Y = -16f; + if (player.whoAmI == Main.myPlayer) + { + //"Well you did refresh the cooldown but like i dont want it to be wasted on a player hit so imma ask you for a refund" + if (Didrefresh) + { + Roxcooldown = 600; + Didrefresh = false; + } + //End the alt attack + player.itemAnimation = 0; + player.itemTime = 0; + RoxAlt = false; + RoxCanUse = 0; + player.velocity.Y = -16f; + } } } }