Removed negative melee speed multipliers from weapons
Now that melee speed isn't everywhere this change that was made as a band aid balance fix once melee speed began effecting projectile weapons can be removed. Also made brimstone sword actually switch between Melee damge and melee no speed damage depending on the attack type and reduced its speed + gave it an extra update so it doesn't phase through enemies when thrown.
This commit is contained in:
1 parent
afadb28a9d
commit
90d00cdd1b
14 files changed
+9
-64
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 },
|
||||
|
||||
@@ -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<BrimstoneSwordProj>();
|
||||
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);
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -208,7 +208,6 @@ BrimstoneSword: {
|
||||
'''
|
||||
Summons brimstone geysers on hit
|
||||
Press <right> 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'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user