diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 37a7a8f32b..2725104967 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -483,15 +483,6 @@ namespace CalamityMod.Items if (item.type == ItemID.DeathSickle) EditTooltipByNum(0, (line) => line.Text += "\nInflicts Whispering Death on hit"); - - if (item.type == ItemID.StarWrath || item.type == ItemID.NorthPole || item.type == ItemID.PsychoKnife) - EditTooltipByNum(0, (line) => line.Text += "\nReceives 33% benefit from melee speed bonuses"); - - if (item.type == ItemID.FetidBaghnakhs) - EditTooltipByName("Knockback", (line) => line.Text += "\nReceives 25% benefit from melee speed bonuses"); - - if (item.type == ItemID.BladedGlove) - EditTooltipByName("Knockback", (line) => line.Text += "\nReceives 50% benefit from melee speed bonuses"); #endregion // Light pets, accessories, and other items which boost the player's Abyss light stat diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index e378a9a9ac..bbe6fe2a0c 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -328,7 +328,7 @@ namespace CalamityMod.Items { ItemID.NettleBurst, Do(ManaExact(10), DamageExact(43)) }, { ItemID.NightmarePickaxe, Do(PickPower(66), UseTimeExact(9)) }, { ItemID.NightsEdge, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(76)) }, - { ItemID.NorthPole, Do(AutoReuse, UseMeleeSpeed, AttackSpeedExact(0.33f)) }, + { ItemID.NorthPole, Do(AutoReuse, UseMeleeSpeed) }, { ItemID.ObsidianShield, Do(DefenseDelta(+5)) }, { ItemID.ObsidianSkull, Do(DefenseDelta(+1)) }, { ItemID.ObsidianSkullRose, Do(DefenseExact(4)) }, @@ -391,7 +391,7 @@ namespace CalamityMod.Items { ItemID.Plum, Do(Value(Item.buyPrice(silver: 2))) }, { ItemID.PoisonStaff, Do(DamageExact(57)) }, { ItemID.Pomegranate, Do(Value(Item.buyPrice(silver: 2))) }, - { ItemID.PsychoKnife, Do(UseTurn, UseExact(11), AttackSpeedExact(0.5f), DamageRatio(3f)) }, + { ItemID.PsychoKnife, Do(UseTurn, UseExact(11), DamageRatio(3f)) }, { ItemID.PulseBow, Do(PointBlank, DamageRatio(1.2f)) }, { ItemID.PumpkinMoonMedallion, nonConsumableBossSummon }, { ItemID.PurpleClubberfish, Do(UseTurn, ScaleRatio(1.5f), DamageExact(45), KnockbackExact(10f)) }, @@ -491,7 +491,7 @@ namespace CalamityMod.Items { ItemID.Starfruit, Do(Value(Item.buyPrice(silver: 2))) }, { ItemID.Starfury, autoReuse }, { ItemID.PortableStool, Do(Value(Item.sellPrice(copper: 20))) }, // Step Stool - { ItemID.StarWrath, Do(DamageRatio(0.9f), AttackSpeedExact(0.33f)) }, + { ItemID.StarWrath, Do(DamageRatio(0.9f)) }, { ItemID.StormTigerStaff, Do(AutoReuse, DamageExact(49), UseExact(20)) }, // Desert Tiger Staff { ItemID.StylistKilLaKillScissorsIWish, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(33)) }, { ItemID.SuspiciousLookingEye, nonConsumableBossSummon }, diff --git a/Items/Weapons/Melee/BrimstoneSword.cs b/Items/Weapons/Melee/BrimstoneSword.cs index 1124f9f696..5bb8fa25dc 100644 --- a/Items/Weapons/Melee/BrimstoneSword.cs +++ b/Items/Weapons/Melee/BrimstoneSword.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true; - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; } public override void SetDefaults() @@ -35,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.shootSpeed = 20f; + Item.shootSpeed = 10f; } public override bool AltFunctionUse(Player player) => true; @@ -44,11 +43,11 @@ namespace CalamityMod.Items.Weapons.Melee { if (player.altFunctionUse == 2) { - Item.noMelee = true; + Item.DamageType = DamageClass.MeleeNoSpeed; } else { - Item.noMelee = false; + Item.DamageType = DamageClass.Melee; } return base.UseItem(player); diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index bb855ef1a0..af799c26d7 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -11,10 +11,6 @@ namespace CalamityMod.Items.Weapons.Melee public class CosmicShiv : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Devastation.cs b/Items/Weapons/Melee/Devastation.cs index 4b8fad157f..bc46f0b8f6 100644 --- a/Items/Weapons/Melee/Devastation.cs +++ b/Items/Weapons/Melee/Devastation.cs @@ -14,7 +14,6 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 11)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Weapons/Melee/DevilsDevastation.cs b/Items/Weapons/Melee/DevilsDevastation.cs index 86746c8987..d8169c3910 100644 --- a/Items/Weapons/Melee/DevilsDevastation.cs +++ b/Items/Weapons/Melee/DevilsDevastation.cs @@ -16,10 +16,6 @@ namespace CalamityMod.Items.Weapons.Melee public class DevilsDevastation : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/ElementalShiv.cs b/Items/Weapons/Melee/ElementalShiv.cs index e8bf37a4bd..ca8df0a385 100644 --- a/Items/Weapons/Melee/ElementalShiv.cs +++ b/Items/Weapons/Melee/ElementalShiv.cs @@ -13,10 +13,6 @@ namespace CalamityMod.Items.Weapons.Melee public class ElementalShiv : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/GalactusBlade.cs b/Items/Weapons/Melee/GalactusBlade.cs index 1aa9d70083..fc422b4042 100644 --- a/Items/Weapons/Melee/GalactusBlade.cs +++ b/Items/Weapons/Melee/GalactusBlade.cs @@ -15,10 +15,6 @@ namespace CalamityMod.Items.Weapons.Melee public class GalactusBlade : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/GalileoGladius.cs b/Items/Weapons/Melee/GalileoGladius.cs index 4d7ac314dd..74b44fb01e 100644 --- a/Items/Weapons/Melee/GalileoGladius.cs +++ b/Items/Weapons/Melee/GalileoGladius.cs @@ -11,10 +11,6 @@ namespace CalamityMod.Items.Weapons.Melee public class GalileoGladius : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Lucrecia.cs b/Items/Weapons/Melee/Lucrecia.cs index 2fe1017bd7..5e31abd386 100644 --- a/Items/Weapons/Melee/Lucrecia.cs +++ b/Items/Weapons/Melee/Lucrecia.cs @@ -12,10 +12,6 @@ namespace CalamityMod.Items.Weapons.Melee public class Lucrecia : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Swordsplosion.cs b/Items/Weapons/Melee/Swordsplosion.cs index d37455e1d9..dec805925a 100644 --- a/Items/Weapons/Melee/Swordsplosion.cs +++ b/Items/Weapons/Melee/Swordsplosion.cs @@ -11,10 +11,6 @@ namespace CalamityMod.Items.Weapons.Melee public class Swordsplosion : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/TenebreusTides.cs b/Items/Weapons/Melee/TenebreusTides.cs index 8c8e3fb3ea..e6e93840bc 100644 --- a/Items/Weapons/Melee/TenebreusTides.cs +++ b/Items/Weapons/Melee/TenebreusTides.cs @@ -13,7 +13,6 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; ItemID.Sets.Spears[Item.type] = true; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 02ceea45ca..0640913da4 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -208,7 +208,6 @@ BrimstoneSword: { ''' Summons brimstone geysers on hit Press to throw the sword like a javelin that explodes on hit - Receives 33% benefit from melee speed bonuses ''' } @@ -289,7 +288,6 @@ CosmicShiv: { ''' Fires a cosmic beam that homes in on enemies Upon hitting an enemy, a barrage of offscreen objects home in on the enemy as well as raining stars - Receives 33% benefit from melee speed bonuses ''' } @@ -328,11 +326,7 @@ DepthCrusher: { Devastation: { DisplayName: Devastation - Tooltip: - ''' - Fires galaxy blasts that explode - Receives 33% benefit from melee speed bonuses - ''' + Tooltip: Fires galaxy blasts that explode } DevilsDevastation: { @@ -342,7 +336,6 @@ DevilsDevastation: { Fires a spread of demonic scythes Pitchforks rise from the underworld to skewer your foes Critical hits cause shadowflame explosions - Receives 33% benefit from melee speed bonuses ''' } @@ -416,11 +409,7 @@ ElementalLance: { ElementalShiv: { DisplayName: Elemental Shiv - Tooltip: - ''' - Shoots a rainbow shiv that spawns additional shivs on hit - Receives 33% benefit from melee speed bonuses - ''' + Tooltip: Shoots a rainbow shiv that spawns additional shivs on hit } EmpyreanKnives: { @@ -574,7 +563,6 @@ GalactusBlade: { Tooltip: ''' Launches a barrage of comets from the sky - Receives 33% benefit from melee speed bonuses Forged with the fury of nuclear chaos ''' } @@ -596,7 +584,6 @@ GalileoGladius: { ''' Shoots a homing crescent moon Spawns planetoids on enemy hits - Receives 33% benefit from melee speed bonuses 'Don't underestimate the power of small space swords' ''' } @@ -728,7 +715,6 @@ Lucrecia: { ''' Striking an enemy makes you immune for a short time Fires a DNA chain - Receives 33% benefit from melee speed bonuses Finesse ''' } @@ -1153,7 +1139,6 @@ Swordsplosion: { Tooltip: ''' Fires multiple rainbow beam swords that rain from the sky - Receives 33% benefit from melee speed bonuses Sword swarm ''' } @@ -1169,7 +1154,6 @@ TenebreusTides: { ''' Shoots a water spear that pierces enemies and terrain Striking enemies summon liquid blades and spears to assault the struck foe - Receives 33% benefit from melee speed bonuses 'Inundatio ex Laminis' ''' } diff --git a/Projectiles/Melee/BrimstoneSwordProj.cs b/Projectiles/Melee/BrimstoneSwordProj.cs index fe44d57e00..0f15323080 100644 --- a/Projectiles/Melee/BrimstoneSwordProj.cs +++ b/Projectiles/Melee/BrimstoneSwordProj.cs @@ -25,6 +25,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.DamageType = DamageClass.Melee; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 10; + Projectile.extraUpdates = 1; } public override void AI()