diff --git a/Items/Weapons/Rogue/FlameScythe.cs b/Items/Weapons/Rogue/FlameScythe.cs index ecafa148c9..8d1ae39829 100644 --- a/Items/Weapons/Rogue/FlameScythe.cs +++ b/Items/Weapons/Rogue/FlameScythe.cs @@ -12,7 +12,8 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { DisplayName.SetDefault("Subduction Slicer"); - Tooltip.SetDefault("Throws a scythe that explodes on enemy hits"); + Tooltip.SetDefault("Throws a scythe that explodes on enemy hits\n" + + "Stealth strikes also summon an orange pillar of fire on enemy hits"); } public override void SafeSetDefaults() diff --git a/Items/Weapons/Rogue/MangroveChakram.cs b/Items/Weapons/Rogue/MangroveChakram.cs index 4f8c982631..b8f9498dcd 100644 --- a/Items/Weapons/Rogue/MangroveChakram.cs +++ b/Items/Weapons/Rogue/MangroveChakram.cs @@ -12,6 +12,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { DisplayName.SetDefault("Mangrove Chakram"); + Tooltip.SetDefault("Stealth strikes leave a trail of lingering flowers"); } public override void SafeSetDefaults() diff --git a/Items/Weapons/Rogue/SeashellBoomerang.cs b/Items/Weapons/Rogue/SeashellBoomerang.cs index c1d4ca304f..c336006edf 100644 --- a/Items/Weapons/Rogue/SeashellBoomerang.cs +++ b/Items/Weapons/Rogue/SeashellBoomerang.cs @@ -12,6 +12,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { DisplayName.SetDefault("Seashell Boomerang"); + Tooltip.SetDefault("Stealth strikes fire seashells at nearby enemies"); } public override void SafeSetDefaults() diff --git a/Projectiles/Rogue/BlueFlamePillar.cs b/Projectiles/Rogue/BlueFlamePillar.cs index 00c8be3541..4a1b3b22c0 100644 --- a/Projectiles/Rogue/BlueFlamePillar.cs +++ b/Projectiles/Rogue/BlueFlamePillar.cs @@ -50,8 +50,13 @@ namespace CalamityMod.Projectiles.Rogue } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { + Texture2D tex = Main.projectileTexture[projectile.type]; + if (projectile.ai[0] == 1f) + { + tex = ModContent.GetTexture("CalamityMod/Projectiles/Rogue/BlueFlamePillarScoria"); + } Rectangle frame = new Rectangle(frameX * 80, frameY * 322, 80, 322); - spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Rogue/BlueFlamePillar"), projectile.Center - Main.screenPosition, frame, Color.White, projectile.rotation, projectile.Size / 2, 1f, SpriteEffects.None, 0f); + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, frame, Color.White, projectile.rotation, projectile.Size / 2, 1f, SpriteEffects.None, 0f); return false; } } diff --git a/Projectiles/Rogue/BlueFlamePillarScoria.png b/Projectiles/Rogue/BlueFlamePillarScoria.png new file mode 100644 index 0000000000..80b16dfdad Binary files /dev/null and b/Projectiles/Rogue/BlueFlamePillarScoria.png differ diff --git a/Projectiles/Rogue/FlameScytheProjectile.cs b/Projectiles/Rogue/FlameScytheProjectile.cs index f87b05b64a..924e41a0b7 100644 --- a/Projectiles/Rogue/FlameScytheProjectile.cs +++ b/Projectiles/Rogue/FlameScytheProjectile.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.World.Generation; namespace CalamityMod.Projectiles.Rogue { @@ -41,6 +42,8 @@ namespace CalamityMod.Projectiles.Rogue int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 0.75f); Main.gore[smoke].behindTiles = true; } + if (projectile.localAI[0] > 0f) + projectile.localAI[0]--; } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) @@ -54,20 +57,30 @@ namespace CalamityMod.Projectiles.Rogue { target.immune[projectile.owner] = 6; target.AddBuff(BuffID.OnFire, 300); - if (projectile.owner == Main.myPlayer) - { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); - Main.projectile[proj].Calamity().forceRogue = true; - } + OnHitEffects(target.Center); } public override void OnHitPvp(Player target, int damage, bool crit) { target.AddBuff(BuffID.OnFire, 300); + OnHitEffects(target.Center); + } + + private void OnHitEffects(Vector2 position) + { if (projectile.owner == Main.myPlayer) { - int proj = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int proj = Projectile.NewProjectile(position, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); Main.projectile[proj].Calamity().forceRogue = true; + if (projectile.Calamity().stealthStrike && projectile.localAI[0] <= 0f) + { + Point result; + if (WorldUtils.Find(projectile.Top.ToTileCoordinates(), Searches.Chain((GenSearch)new Searches.Down(80), (GenCondition)new Conditions.IsSolid()), out result)) + { + Projectile.NewProjectile(result.ToVector2() * 16f, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, 2f, projectile.owner, 1f); + projectile.localAI[0] = 30f; + } + } } } } diff --git a/Projectiles/Rogue/MangroveChakramProjectile.cs b/Projectiles/Rogue/MangroveChakramProjectile.cs index 4dbafecee2..97f9ca39ff 100644 --- a/Projectiles/Rogue/MangroveChakramProjectile.cs +++ b/Projectiles/Rogue/MangroveChakramProjectile.cs @@ -34,14 +34,13 @@ namespace CalamityMod.Projectiles.Rogue Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 44, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); if (projectile.Calamity().stealthStrike) { - if (projectile.timeLeft % 20 == 0) + projectile.localAI[0] += Main.rand.Next(0,3); + if (projectile.localAI[0] >= 10f) { - for (int i = 0; i < 2; i++) - { - Projectile.NewProjectile(projectile.Center + new Vector2(Main.rand.NextFloat(-5f,5f), Main.rand.NextFloat(-5f,5f)), - (projectile.velocity).RotatedByRandom(0.1f) * 0.1f, - ModContent.ProjectileType(), projectile.damage / 2, 0f, projectile.owner); - } + projectile.localAI[0] = 0f; + Projectile.NewProjectile(projectile.Center + new Vector2(Main.rand.NextFloat(-10f,10f), Main.rand.NextFloat(-10f,10f)), + (projectile.velocity).RotatedByRandom(0.1f) * 0.25f, + ModContent.ProjectileType(), projectile.damage / 4, 0f, projectile.owner); } } } diff --git a/Projectiles/Rogue/SeashellBoomerangProjectile.cs b/Projectiles/Rogue/SeashellBoomerangProjectile.cs index 0799023d5a..b8637e0898 100644 --- a/Projectiles/Rogue/SeashellBoomerangProjectile.cs +++ b/Projectiles/Rogue/SeashellBoomerangProjectile.cs @@ -1,3 +1,5 @@ +using CalamityMod.Projectiles.Typeless; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -27,7 +29,7 @@ namespace CalamityMod.Projectiles.Rogue public override void AI() { if (projectile.Calamity().stealthStrike) - CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 10f, 60f, 5, ModContent.ProjectileType()); + CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 10f, 20f, 5, ModContent.ProjectileType()); } } }