From 2b748215dcd29defd8bf2ff7381b9b09029346f5 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 11 Jun 2022 20:06:11 -0500 Subject: [PATCH] Removed Terra Shiv --- Items/Weapons/Melee/TerraShiv.cs | 64 ----------------------- Items/Weapons/Melee/TerraShiv.png | Bin 971 -> 0 bytes Projectiles/Melee/ShortTerraBeam.cs | 73 --------------------------- Projectiles/Melee/ShortTerraBeam.png | Bin 399 -> 0 bytes 4 files changed, 137 deletions(-) delete mode 100644 Items/Weapons/Melee/TerraShiv.cs delete mode 100644 Items/Weapons/Melee/TerraShiv.png delete mode 100644 Projectiles/Melee/ShortTerraBeam.cs delete mode 100644 Projectiles/Melee/ShortTerraBeam.png 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 6af4659a1e4d3a6c415bdd2eeeba8afa23e6772a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 971 zcmV;+12p`JP)A?-H6m(H-Qji1QiiMgAi{PMFhJU z=3QMB1ZhPV(uG*Ch32wl(-^tqT3Y*~PEQxlc|7|a&z9*je(2}soZs(!pXc|S_xb*N zo|E{$b=Njfaqmjd+%^kFa;x%l&F;9ltGa$A|M?RN#O6~~%Th2kbTJPr9)pvr~-~R;PHoXBFyZgYd$4`OQo-k}=cOY5SvNVCIp-J3Q zMCZwqD>sCEIC*?54>eDAl(p;K-+&^?IoTi>{P8t1MD+SAQ-S2tduqVN-zM_q%-Y`F z0iNIZK8gfmlt;aHct7astWK{jYea9@MBGe zqb5E(T=sg+gOv%KK02N9;Yf0M!;%EfpSrZ*{23xTPab@(?ym(0_UFRulIp4iE}fey z8}*UooEi_B+h!9O9xNCZqI*7Nh-gWlSl2Ljqt2zSh6fAb@ed@UGDQ@{zHnrBAUu)`fZcCC2KstWfPtxHf$&u5h9b$)55rWg zJ?YvV)hiNC-@jI6hiLT4NHRv}z>a3{&@-XZbbNjceEP^X@WeZhg1*(?pxBv5lFQbF z{CMH?rTpCc#Xj@mzglQ^h;FV39ds@kLXl)g%lWbcVlDsp*}b6e%dl%)pwgr|v@0a9 zG1{ZDLp1lxuX&2m9epxt?+c%RT?cE!jf0^ZioV?1lP2FfJ`LLIE`a{y=^o&El^LSR z=9-$aHTqD#9mTVtHQNKZ=!?Bu$5Zx)hn8P8H@6_s3MElFR=YO5ITP|~>8V;Ix$}dk zQxmm+^dpKDY_XLoqM&V4@WsI+qj|`82ZCLl(P9kjJQ_&GY!H3(*qLF_xM4#Al@pg2 zb)nfIy1up&3?3Ov<jJGZPuk!0JZ`UD1#jHU*BUx@DLlaXX;KWmZyAIJ>Rt18p_+OQ8lS*Y1_l-^t2 tw=RK0v*AQIcWOmxg-e|s-Ka7{^l!$`JGj79` 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 290db187a01b7e4cf78502aa54223f3043ab96a1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 399 zcmV;A0dW3_P)38>g58&K0wvJ8c(jFcxHK06@dA9utQ(WiIk zb2{f7=CsyWzI~wuGFkoH1dlk6_D?u8(Mf_^>;M2)Tv|p=k}88N?4RH9=$hy!NuR+z zHX||BKU+pal3dOFKh9>oqN+b~Ce=Pm*OyTx=rb0oZkANptS_T1>3=K90k_ofN z2|u>VQzgsGD9f<`XH*HYuvM}gQ8hn?&St;QSyb}%i1Jc0EUEfxY?YTIs^&;*mN|o| znap3*I+6S5>Nc60!D2*TXT7=wsxvw?MSWW~zl^c~pD>(F>s_Z_QEOieWw!dN@25^h tzY@&1kFH#A`t}o=^qVM){!6Mj(I?l-v$?0Vf`9-3002ovPDHLkV1jrqr>Xz|