diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index cd8be263f2..7bfd3ae188 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -185,14 +185,17 @@ namespace CalamityMod.Balancing // 50% resist to Aegis Blade's explosions because the true melee resist ain't enough. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); - // 40% resist to Flying Dragon. - NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileID.DD2SquireSonicBoom)))); + // 35% resist to Flying Dragon. + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2SquireSonicBoom)))); // 30% resist to Aurora Blazer. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType())))); // 30% resist to Flak Kraken. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType())))); + + // 25% resist to Lucrecia. + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType())))); #endregion #region Duke Fishron diff --git a/Items/Weapons/Melee/CometQuasher.cs b/Items/Weapons/Melee/CometQuasher.cs index 9ded5e6ae6..b5fb454e2f 100644 --- a/Items/Weapons/Melee/CometQuasher.cs +++ b/Items/Weapons/Melee/CometQuasher.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 46; Item.height = 62; - Item.damage = 141; + Item.damage = 134; Item.DamageType = DamageClass.Melee; Item.useAnimation = 22; Item.useStyle = ItemUseStyleID.Swing; diff --git a/Items/Weapons/Melee/Greentide.cs b/Items/Weapons/Melee/Greentide.cs index 9c028340ed..7ef2df9675 100644 --- a/Items/Weapons/Melee/Greentide.cs +++ b/Items/Weapons/Melee/Greentide.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; - internal const float ShootSpeed = 20f; + internal const float ShootSpeed = 32f; internal const float TeethSpread = 960f; @@ -19,16 +19,16 @@ namespace CalamityMod.Items.Weapons.Melee internal const int TotalRows = 2; - internal const int TotalTeeth = 6; + internal const int TotalTeeth = 5; public override void SetDefaults() { Item.width = 62; Item.height = 62; - Item.damage = 95; + Item.damage = 87; // IS THAT THE BITE OF '87 Item.DamageType = DamageClass.Melee; - Item.useTime = 24; - Item.useAnimation = 24; + Item.useTime = 31; + Item.useAnimation = 31; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 7f; @@ -41,16 +41,16 @@ namespace CalamityMod.Items.Weapons.Melee public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) { - Vector2 destination = Main.MouseWorld; + Vector2 destination = target.Center; Vector2 position = destination - (Vector2.UnitY * (Main.MouseWorld.Y - Main.screenPosition.Y + 80f)); Vector2 cachedPosition = position; Vector2 secondPosition = cachedPosition + (Vector2.UnitY * (Main.screenHeight + 160f)); Vector2 secondCachedPosition = secondPosition; - Vector2 velocity = (Main.MouseWorld - position).SafeNormalize(Vector2.UnitY) * ShootSpeed; + Vector2 velocity = (destination - position).SafeNormalize(Vector2.UnitY) * ShootSpeed; Vector2 cachedVelocity = velocity; - Vector2 secondVelocity = (Main.MouseWorld - secondPosition).SafeNormalize(Vector2.UnitY) * ShootSpeed; + Vector2 secondVelocity = (destination - secondPosition).SafeNormalize(Vector2.UnitY) * ShootSpeed; Vector2 secondCachedVelocity = secondVelocity; int teethDamage = player.CalcIntDamage((int)(Item.damage * 0.5)); @@ -70,16 +70,18 @@ namespace CalamityMod.Items.Weapons.Melee if (topTeeth) { position.X += MathHelper.Lerp(-HalvedTeethSpread, HalvedTeethSpread, j / (float)(TotalTeeth - 1)); - velocity = (Main.MouseWorld - position).SafeNormalize(Vector2.UnitY) * ShootSpeed; - Projectile.NewProjectile(player.GetSource_ItemUse(Item), position, new Vector2(velocity.X * teethXVelocityReduction, velocity.Y) * velocityAdjustment, ModContent.ProjectileType(), teethDamage, teethKnockback, player.whoAmI, 0f, i, target.Center.Y); + velocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(position, target, ShootSpeed, 1) * velocityAdjustment; + velocity.X *= teethXVelocityReduction; + Projectile.NewProjectile(player.GetSource_ItemUse(Item), position, velocity, ModContent.ProjectileType(), teethDamage, teethKnockback, player.whoAmI, 0f, i, target.Center.Y); position = cachedPosition; velocity = cachedVelocity; } else { secondPosition.X += MathHelper.Lerp(-HalvedTeethSpread, HalvedTeethSpread, j / (float)(TotalTeeth - 1)); - secondVelocity = (Main.MouseWorld - secondPosition).SafeNormalize(Vector2.UnitY) * ShootSpeed; - Projectile.NewProjectile(player.GetSource_ItemUse(Item), secondPosition, new Vector2(secondVelocity.X * teethXVelocityReduction, secondVelocity.Y) * velocityAdjustment, ModContent.ProjectileType(), teethDamage, teethKnockback, player.whoAmI, 0f, i, target.Center.Y); + secondVelocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(secondPosition, target, ShootSpeed, 1) * velocityAdjustment; + secondVelocity.X *= teethXVelocityReduction; + Projectile.NewProjectile(player.GetSource_ItemUse(Item), secondPosition, secondVelocity, ModContent.ProjectileType(), teethDamage, teethKnockback, player.whoAmI, 0f, i, target.Center.Y); secondPosition = secondCachedPosition; secondVelocity = secondCachedVelocity; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 8c098135c8..0360d1e5a7 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -254,7 +254,7 @@ ChronomancersScythe: { Tooltip: ''' Rapidly fires icicles - Press to swing the scythe around you creating a clock pattern of homing icicles + Press to swing the scythe around you, creating a clock pattern of homing icicles Direct hits with the scythe have a chance to spawn clocks Collecting the clocks increases movement speed and acceleration by 5% for each clock collected This stacks up to 3 times and each level wears off after 5 seconds @@ -632,7 +632,7 @@ GreatswordofJudgement: { Greentide: { DisplayName: Greentide - Tooltip: Summons teeth from the sky on hit + Tooltip: Summons teeth to chomp your foes on hit } HellfireFlamberge: { diff --git a/Projectiles/Melee/DNA.cs b/Projectiles/Melee/DNA.cs index 9ba88341f9..a3305715ba 100644 --- a/Projectiles/Melee/DNA.cs +++ b/Projectiles/Melee/DNA.cs @@ -9,8 +9,7 @@ namespace CalamityMod.Projectiles.Melee { public new string LocalizationCategory => "Projectiles.Melee"; - public static int OnHitIFrames = 3; - public static int TotalSegments = 6; + public static int TotalSegments = 10; public override void SetDefaults() { @@ -23,7 +22,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.DamageType = DamageClass.Melee; Projectile.penetrate = -1; Projectile.usesIDStaticNPCImmunity = true; - Projectile.idStaticNPCHitCooldown = 12; + Projectile.idStaticNPCHitCooldown = 6; } public override void AI() @@ -83,10 +82,5 @@ namespace CalamityMod.Projectiles.Melee { Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.BoneTorch, Projectile.oldVelocity.X * 0.005f, Projectile.oldVelocity.Y * 0.005f); } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - Main.player[Projectile.owner].GiveIFrames(OnHitIFrames); - } } } diff --git a/Projectiles/Melee/Shortswords/LucreciaProj.cs b/Projectiles/Melee/Shortswords/LucreciaProj.cs index e666eb5412..2517332b34 100644 --- a/Projectiles/Melee/Shortswords/LucreciaProj.cs +++ b/Projectiles/Melee/Shortswords/LucreciaProj.cs @@ -11,7 +11,6 @@ namespace CalamityMod.Projectiles.Melee.Shortswords { public class LucreciaProj : BaseShortswordProjectile { - public const int OnHitIFrames = 5; public override LocalizedText DisplayName => CalamityUtils.GetItemName(); public override string Texture => "CalamityMod/Items/Weapons/Melee/Lucrecia"; @@ -32,7 +31,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords public override Action EffectBeforePullback => (proj) => { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 12f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 10f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f); }; @@ -54,25 +53,5 @@ namespace CalamityMod.Projectiles.Melee.Shortswords if (Main.rand.NextBool(5)) Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.BoneTorch); } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - Main.player[Projectile.owner].GiveIFrames(OnHitIFrames, false); - } - - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - Player player = Main.player[Projectile.owner]; - bool isImmune = false; - for (int j = 0; j < player.hurtCooldowns.Length; j++) - { - if (player.hurtCooldowns[j] > 0) - isImmune = true; - } - if (!isImmune) - { - Owner.GiveIFrames(OnHitIFrames, true); - } - } } }