From f4d10c810cfc21f89c4d815b60b24ef6c32715cd Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 3 Jan 2022 12:39:52 -0500 Subject: [PATCH] more seared pan tweaks --- Items/Weapons/Rogue/SearedPan.cs | 3 ++- Projectiles/Rogue/SearedPanProjectile.cs | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Rogue/SearedPan.cs b/Items/Weapons/Rogue/SearedPan.cs index bca1c5c2a6..7277681c8f 100644 --- a/Items/Weapons/Rogue/SearedPan.cs +++ b/Items/Weapons/Rogue/SearedPan.cs @@ -11,6 +11,7 @@ namespace CalamityMod.Items.Weapons.Rogue public class SearedPan : RogueWeapon { // Attacks must be within 40 frames of each other to count as "consecutive" hits + // This is a little less than double the use time public static int ConsecutiveHitOpening = 40; public override void SetStaticDefaults() { @@ -27,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue { item.width = 60; item.height = 36; - item.damage = 999; + item.damage = 800; item.Calamity().rogue = true; item.knockBack = 10f; item.noMelee = true; diff --git a/Projectiles/Rogue/SearedPanProjectile.cs b/Projectiles/Rogue/SearedPanProjectile.cs index 5552575ceb..d780988acf 100644 --- a/Projectiles/Rogue/SearedPanProjectile.cs +++ b/Projectiles/Rogue/SearedPanProjectile.cs @@ -58,8 +58,10 @@ namespace CalamityMod.Projectiles.Rogue Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - // Don't spawn fireballs if you can't even stealth strike + // Don't spawn fireballs or increment the special effects counter if you can't even stealth strike bool playerCanStealthStrike = modPlayer.wearingRogueArmor && modPlayer.rogueStealthMax > 0; + if (!playerCanStealthStrike) + return; // Increment the seared pan counter and refill stealth after three consecutive hits // See CalamityPlayerMiscEffects.cs for code that resets the counter after 40 frames @@ -79,19 +81,19 @@ namespace CalamityMod.Projectiles.Rogue for (int t = 0; t < 6; t++) { Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f); - Projectile.NewProjectile(projectile.Center, velocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 0f, projectile.owner); + Projectile.NewProjectile(projectile.Center, velocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.2), 0f, projectile.owner); } Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/SearedPanSmash"), (int)projectile.position.X, (int)projectile.position.Y); // Stealth strikes also cause any fireballs to home in on their targets FireballStuff(true); } - else if (targetIndex != -1 && health > 0 && playerCanStealthStrike) + else if (targetIndex != -1 && health > 0) { // Summon three fireballs to circle the hit enemy int projType = ModContent.ProjectileType(); for (int t = 0; t < 3; t++) { - Projectile.NewProjectile(projectile.Center, Vector2.Zero, projType, (int)(projectile.damage * 0.3), 0f, projectile.owner, 0f, targetIndex); + Projectile.NewProjectile(projectile.Center, Vector2.Zero, projType, (int)(projectile.damage * 0.2), 0f, projectile.owner, 0f, targetIndex); } int fireballCount = 0; // Count how many fireballs exist already around the given target