Made the Radiant Star stealth strike feel more impactful

This commit is contained in:
Amber Sienna committed 2020-01-18 08:11:02 +00:00
1 parent c36b944e9a
commit 6f8ecc08cb
2 files changed
+8 -3

No files matched your search

+6 -1
View File
@@ -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++)
{
+2 -2
View File
@@ -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<RadiantStar2>(), 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<RadiantExplosion>(), 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;
}
}