From 6f8ecc08cbcda336cbe3139178045dabc365cdbf Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Sat, 18 Jan 2020 08:11:02 +0000 Subject: [PATCH] Made the Radiant Star stealth strike feel more impactful --- Projectiles/Rogue/RadiantExplosion.cs | 7 ++++++- Projectiles/Rogue/RadiantStarKnife.cs | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Projectiles/Rogue/RadiantExplosion.cs b/Projectiles/Rogue/RadiantExplosion.cs index f15cec3008..7c0e7fb023 100644 --- a/Projectiles/Rogue/RadiantExplosion.cs +++ b/Projectiles/Rogue/RadiantExplosion.cs @@ -35,10 +35,15 @@ namespace CalamityMod.Projectiles.Rogue { projectile.timeLeft = 100; projectile.ai[0] = 0f; + if (projectile.Calamity().stealthStrike) + { + projectile.width += 150; + projectile.height += 150; + } updatedTime = true; } - if (projectile.timeLeft >= 80) + if (projectile.timeLeft >= (updatedTime ? 80 : 6)) { for (int i = 0; i < 5; i++) { diff --git a/Projectiles/Rogue/RadiantStarKnife.cs b/Projectiles/Rogue/RadiantStarKnife.cs index ca563c588f..d229136e6e 100644 --- a/Projectiles/Rogue/RadiantStarKnife.cs +++ b/Projectiles/Rogue/RadiantStarKnife.cs @@ -88,11 +88,11 @@ namespace CalamityMod.Projectiles.Rogue speed *= (float)Main.rand.Next(30, 61) * 0.1f * 2.5f; int stabber2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, projectile.ai[0] == 1f ? 1f : 0f, 0f); - Main.projectile[stabber2].Calamity().stealthStrike = true; + Main.projectile[stabber2].Calamity().stealthStrike = projectile.Calamity().stealthStrike; } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); int boomer = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Main.projectile[boomer].Calamity().stealthStrike = true; + Main.projectile[boomer].Calamity().stealthStrike = projectile.Calamity().stealthStrike; projectile.active = false; } }