diff --git a/Items/Weapons/Rogue/ConsecratedWater.cs b/Items/Weapons/Rogue/ConsecratedWater.cs index de240b70ad..4a6cabf8ee 100644 --- a/Items/Weapons/Rogue/ConsecratedWater.cs +++ b/Items/Weapons/Rogue/ConsecratedWater.cs @@ -12,10 +12,10 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { DisplayName.SetDefault("Consecrated Water"); - Tooltip.SetDefault("Throws a holy flask of water that explodes into a sacred flame pillar on death\n" + + Tooltip.SetDefault("The bottle is surprisingly dusty\n" + + "Throws a holy flask of water that explodes into a sacred flame pillar on death\n" + "The pillar is destroyed if there's no tiles below it\n" + - "Stealth strikes creates three flame pillars instead of one on impact\n" + - "'The bottle is surprisingly dusty'"); + "Stealth strikes create three flame pillars instead of one on impact"); } public override void SafeSetDefaults() diff --git a/Items/Weapons/Rogue/TotalityBreakers.cs b/Items/Weapons/Rogue/TotalityBreakers.cs index f9e8a031ad..d8c035c1af 100644 --- a/Items/Weapons/Rogue/TotalityBreakers.cs +++ b/Items/Weapons/Rogue/TotalityBreakers.cs @@ -23,9 +23,9 @@ Stealth strikes leak tar as they fly"); item.damage = 55; item.noMelee = true; item.noUseGraphic = true; - item.useAnimation = 24; + item.useAnimation = 28; item.useStyle = 1; - item.useTime = 24; + item.useTime = 28; item.knockBack = 5f; item.UseSound = SoundID.Item106; item.autoReuse = true; diff --git a/Projectiles/Rogue/TotalMeltdown.cs b/Projectiles/Rogue/TotalMeltdown.cs new file mode 100644 index 0000000000..cca1032729 --- /dev/null +++ b/Projectiles/Rogue/TotalMeltdown.cs @@ -0,0 +1,46 @@ +using CalamityMod.Dusts; +using Microsoft.Xna.Framework; +using System.IO; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Rogue +{ + public class TotalMeltdown : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Explosion"); + ProjectileID.Sets.MinionShot[projectile.type] = true; + Main.projFrames[projectile.type] = 13; + } + + public override void SetDefaults() + { + projectile.width = 44; + projectile.height = 48; + projectile.friendly = true; + projectile.Calamity().rogue = true; + projectile.penetrate = -1; + projectile.timeLeft = Main.projFrames[projectile.type] * 5; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 30; + } + + public override void AI() + { + if (projectile.timeLeft % 5f == 4f) + projectile.frame++; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(BuffID.OnFire, 300); + } + + public override void OnHitPvp(Player target, int damage, bool crit) + { + target.AddBuff(BuffID.OnFire, 300); + } + } +} diff --git a/Projectiles/Rogue/TotalMeltdown.png b/Projectiles/Rogue/TotalMeltdown.png new file mode 100644 index 0000000000..909d402617 Binary files /dev/null and b/Projectiles/Rogue/TotalMeltdown.png differ diff --git a/Projectiles/Rogue/TotalityFlask.cs b/Projectiles/Rogue/TotalityFlask.cs index d3f1ce9e8e..1f86320d87 100644 --- a/Projectiles/Rogue/TotalityFlask.cs +++ b/Projectiles/Rogue/TotalityFlask.cs @@ -1,8 +1,8 @@ using Microsoft.Xna.Framework; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using System; namespace CalamityMod.Projectiles.Rogue { @@ -53,9 +53,12 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(13, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0.0f); - //projectile.usesLocalNPCImmunity = true; - //projectile.localNPCHitCooldown = 10; + //glass-pot break sound + Main.PlaySound(13, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0f); + + int meltdown = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Main.projectile[meltdown].Center = projectile.Center; //makes it centered because it's not without this + Vector2 vector2 = new Vector2(20f, 20f); for (int index = 0; index < 5; ++index) Dust.NewDust(projectile.Center - vector2 / 2f, (int) vector2.X, (int) vector2.Y, 191, 0.0f, 0.0f, 0, Color.Red, 1f); @@ -87,7 +90,7 @@ namespace CalamityMod.Projectiles.Rogue } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)(projectile.damage * 0.6), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 0f, Main.myPlayer, 0f, 0f); } } }