diff --git a/Items/Weapons/Melee/TerraShiv.cs b/Items/Weapons/Melee/TerraShiv.cs deleted file mode 100644 index bed838fe74..0000000000 --- a/Items/Weapons/Melee/TerraShiv.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Terraria.DataStructures; -using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Melee; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Weapons.Melee -{ - public class TerraShiv : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Terra Shiv"); - Tooltip.SetDefault("Don't underestimate the power of shivs"); - SacrificeTotal = 1; - } - - public override void SetDefaults() - { - Item.useStyle = ItemUseStyleID.Thrust; - Item.useTurn = false; - Item.useAnimation = 13; - Item.useTime = 13; - Item.width = 42; - Item.height = 42; - Item.damage = 140; - Item.DamageType = DamageClass.Melee; - Item.knockBack = 6.5f; - Item.UseSound = SoundID.Item1; - Item.useTurn = true; - Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 12f; - Item.value = Item.buyPrice(0, 80, 0, 0); - Item.rare = ItemRarityID.Yellow; - } - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - Projectile.NewProjectile(source, position.X, position.Y, Item.shootSpeed * player.direction, 0f, type, damage, knockback, player.whoAmI, 0f, 0f); - return false; - } - - public override void MeleeEffects(Player player, Rectangle hitbox) - { - if (Main.rand.NextBool(5)) - { - int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 107); - } - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddIngredient(). - AddIngredient(7). - AddTile(TileID.MythrilAnvil). - Register(); - } - } -} diff --git a/Items/Weapons/Melee/TerraShiv.png b/Items/Weapons/Melee/TerraShiv.png deleted file mode 100644 index 6af4659a1e..0000000000 Binary files a/Items/Weapons/Melee/TerraShiv.png and /dev/null differ diff --git a/Projectiles/Melee/ShortTerraBeam.cs b/Projectiles/Melee/ShortTerraBeam.cs deleted file mode 100644 index 1d05007b06..0000000000 --- a/Projectiles/Melee/ShortTerraBeam.cs +++ /dev/null @@ -1,73 +0,0 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.Audio; - -namespace CalamityMod.Projectiles.Melee -{ - public class ShortTerraBeam : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Beam"); - } - - public override void SetDefaults() - { - Projectile.width = 20; - Projectile.height = 20; - Projectile.aiStyle = 27; - Projectile.friendly = true; - Projectile.DamageType = DamageClass.Melee; - Projectile.penetrate = 4; - Projectile.timeLeft = 120; - AIType = ProjectileID.TerraBeam; - } - - public override void AI() - { - Lighting.AddLight(Projectile.Center, 0f, (255 - Projectile.alpha) * 0.75f / 255f, 0f); - if (Main.rand.NextBool(5)) - { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 107, Projectile.velocity.X, Projectile.velocity.Y); - } - } - - public override bool PreDraw(ref Color lightColor) - { - if (Projectile.timeLeft > 115) - return false; - - Texture2D tex = ModContent.Request(Texture).Value; - Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); - return false; - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - // TODO -- Use proper i-frame variables. - target.immune[Projectile.owner] = 7; - } - - public override void Kill(int timeLeft) - { - SoundEngine.PlaySound(SoundID.Item10, Projectile.position); - int num3; - for (int num795 = 4; num795 < 31; num795 = num3 + 1) - { - float num796 = Projectile.oldVelocity.X * (30f / (float)num795); - float num797 = Projectile.oldVelocity.Y * (30f / (float)num795); - int num798 = Dust.NewDust(new Vector2(Projectile.oldPosition.X - num796, Projectile.oldPosition.Y - num797), 8, 8, 107, Projectile.oldVelocity.X, Projectile.oldVelocity.Y, 100, default, 1.8f); - Main.dust[num798].noGravity = true; - Dust dust = Main.dust[num798]; - dust.velocity *= 0.5f; - num798 = Dust.NewDust(new Vector2(Projectile.oldPosition.X - num796, Projectile.oldPosition.Y - num797), 8, 8, 107, Projectile.oldVelocity.X, Projectile.oldVelocity.Y, 100, default, 1.4f); - dust = Main.dust[num798]; - dust.velocity *= 0.05f; - num3 = num795; - } - } - } -} diff --git a/Projectiles/Melee/ShortTerraBeam.png b/Projectiles/Melee/ShortTerraBeam.png deleted file mode 100644 index 290db187a0..0000000000 Binary files a/Projectiles/Melee/ShortTerraBeam.png and /dev/null differ