diff --git a/Items/Weapons/Melee/StygianShield.cs b/Items/Weapons/Melee/StygianShield.cs index b24ec9360e..e1d1cb661c 100644 --- a/Items/Weapons/Melee/StygianShield.cs +++ b/Items/Weapons/Melee/StygianShield.cs @@ -22,6 +22,8 @@ namespace CalamityMod.Items.Weapons.Melee public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(HeldDefense, (DisableDashDuration / 60D).ToString("N1")); + public override void SetStaticDefaults() => ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true; + public override void SetDefaults() { Item.width = 74; @@ -30,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noMelee = true; Item.noUseGraphic = true; Item.channel = true; - Item.damage = 222; + Item.damage = 180; Item.DamageType = DamageClass.MeleeNoSpeed; Item.useAnimation = Item.useTime = 40; // This is only for the "Very slow" tooltip. The real use time should be faster Item.shoot = ModContent.ProjectileType(); @@ -42,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = null; } - // Can only throw a shield if none is active + // Can only throw a shield if there's two or less public override bool AltFunctionUse(Player player) => player.ownedProjectileCounts[ThrownShieldID] <= 1; public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; diff --git a/Projectiles/Melee/StygianShieldAttack.cs b/Projectiles/Melee/StygianShieldAttack.cs index f9a62b24bb..3e80cc65e5 100644 --- a/Projectiles/Melee/StygianShieldAttack.cs +++ b/Projectiles/Melee/StygianShieldAttack.cs @@ -19,12 +19,11 @@ namespace CalamityMod.Projectiles.Melee // Bull Rush stats public const float MinChargeTime = 15f; - public const float MaxChargeTime = 50f; - public const float MaxChargeDistance = 800f; // 50 blocks - public const float MaxChargeDamageMult = 4.5f; + public const float MaxChargeTime = 45f; + public const float MaxChargeDistance = 720f; // 45 blocks + public const float MaxChargeDamageMult = 6f; public const float PiercingDamageMult = 0.6f; public const float DashDuration = 21f; - public const int IFrameAmount = 12; public Player Owner => Main.player[Projectile.owner]; public ref float Charge => ref Projectile.ai[0]; @@ -122,6 +121,13 @@ namespace CalamityMod.Projectiles.Melee { SoundEngine.PlaySound(DashSound, Owner.Center); + // Give immunity frames + Owner.immune = true; + Owner.immuneNoBlink = true; + Owner.immuneTime = (int)DashDuration; + for (int k = 0; k < Owner.hurtCooldowns.Length; k++) + Owner.hurtCooldowns[k] = Owner.immuneTime; + // Reset the trail for (int i = 0; i < Projectile.oldPos.Length; i++) { @@ -172,13 +178,6 @@ namespace CalamityMod.Projectiles.Melee float rotation = Projectile.velocity.ToRotation() - MathHelper.Pi; Particle redSlash = new SlashThrough(Color.Red * 0.9f, Owner.Center, rotation, 15, target); GeneralParticleHandler.SpawnParticle(redSlash); - - // Give immunity frames - Owner.immune = true; - Owner.immuneNoBlink = true; - Owner.immuneTime = IFrameAmount; - for (int k = 0; k < Owner.hurtCooldowns.Length; k++) - Owner.hurtCooldowns[k] = Owner.immuneTime; } internal Color ColorFunction(float completionRatio) diff --git a/Projectiles/Melee/StygianShieldThrown.cs b/Projectiles/Melee/StygianShieldThrown.cs index bea6327383..fc81cbd30e 100644 --- a/Projectiles/Melee/StygianShieldThrown.cs +++ b/Projectiles/Melee/StygianShieldThrown.cs @@ -146,7 +146,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.tileCollide = false; // Swiftly move back towards the player - Projectile.velocity = Projectile.SafeDirectionTo(Owner.Center) * 15f; + Projectile.velocity = Projectile.SafeDirectionTo(Owner.Center) * 20f; // Delete the projectile if it touches its owner or too far away. if (Projectile.Hitbox.Intersects(Owner.Hitbox) || Vector2.Distance(Projectile.Center, Owner.Center) >= 3000f)