From e99372c9acc0d56decc5a3efa7f89adbf133fca2 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 11 Jun 2022 20:07:00 -0500 Subject: [PATCH] Removed True Excalibur Shortsword --- .../Weapons/Melee/TrueExcaliburShortsword.cs | 62 ------------------ .../Weapons/Melee/TrueExcaliburShortsword.png | Bin 813 -> 0 bytes Projectiles/Melee/ShortBeam.cs | 60 ----------------- Projectiles/Melee/ShortBeam.png | Bin 420 -> 0 bytes 4 files changed, 122 deletions(-) delete mode 100644 Items/Weapons/Melee/TrueExcaliburShortsword.cs delete mode 100644 Items/Weapons/Melee/TrueExcaliburShortsword.png delete mode 100644 Projectiles/Melee/ShortBeam.cs delete mode 100644 Projectiles/Melee/ShortBeam.png diff --git a/Items/Weapons/Melee/TrueExcaliburShortsword.cs b/Items/Weapons/Melee/TrueExcaliburShortsword.cs deleted file mode 100644 index a9af9f8abc..0000000000 --- a/Items/Weapons/Melee/TrueExcaliburShortsword.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Terraria.DataStructures; -using CalamityMod.Projectiles.Melee; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Weapons.Melee -{ - public class TrueExcaliburShortsword : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("True Excalibur Shortsword"); - Tooltip.SetDefault("Don't underestimate the power of shortswords"); - SacrificeTotal = 1; - } - - public override void SetDefaults() - { - Item.useStyle = ItemUseStyleID.Thrust; - Item.useTurn = false; - Item.useAnimation = 12; - Item.useTime = 12; - Item.width = 42; - Item.height = 42; - Item.damage = 130; - Item.DamageType = DamageClass.Melee; - Item.knockBack = 5.75f; - Item.UseSound = SoundID.Item1; - Item.useTurn = true; - Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 16f; - 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, 57); - } - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddIngredient(ItemID.BrokenHeroSword). - AddTile(TileID.MythrilAnvil). - Register(); - } - } -} diff --git a/Items/Weapons/Melee/TrueExcaliburShortsword.png b/Items/Weapons/Melee/TrueExcaliburShortsword.png deleted file mode 100644 index 6ced91fcc3baf9d00fdbe0cad06ce08f31f1614e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 813 zcmV+|1JeA7P)Nkl)J7DnY$KWD4?;2s z(X>gyMGIZ@gJe^fGl{tvLrJCGyQ4 zucFEmr4%L$kVjwjzroVIXeBTZI0uv|IWx74^^SOIeX?G8qDS{^LoI(ld0tn^SnMh0 zn=g!OJV_@)_vgUeAc~S@l}UM`M6ksxyy&c10j8a;z(hjSaIPeIvZO2*>y|6J;Y9gG zo}7(nY{QRwVsrt@R3x0hi9<_bT(u8a?tKD$Ti*;Ec<}@1bLIgl+q3ql?TFGvo*wE% z$to&jPP|M3+PgV(?etf7woB!&%R}A?1jY_wvdg zAUM~J%fPw2y+ETChdlY=>o1Ks7hOTkyAxN^u%gNnC4xPz#}QQL{!t1JNL>)G-Mr$+ zl+--Tz(DFz+YzN~4$kx=ZhAW$4-3yymh*~ZmXaAg$}e!`i1H(+N>UlQhTyjM`GI#@ zN`bUak@waX;OpzfwC;Uqz>d0G)_7ETqB4RHZ%!e?t2@P8;`2}6fsyz}V7o5}q^^hL z;2pZ`el)7^s-m_d$|Ee?yaQ8V&k^96QZb%R73nHTT@ZPco@ctE$`j=Tt54UW2487t z!qTHq0C?);ZsFOsGR;q@{|w!FiFsbrje1eGPgtm$IvdtwN#yX!vi%e!G9 zRVuC^DPgvf^xRcNl_yFBc~(~siB5cEF@<3G^<|Y8r5?2%(cwDr9?mNdSJY}RW>nNR rM0q5n 55) - 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 Kill(int timeLeft) - { - for (int k = 0; k < 5; k++) - { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 73, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f); - } - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - // TODO -- Use proper i-frame variables. - target.immune[Projectile.owner] = 7; - } - } -} diff --git a/Projectiles/Melee/ShortBeam.png b/Projectiles/Melee/ShortBeam.png deleted file mode 100644 index 0b18361b911a1afce07c0161b7d5cdb62da1b98b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 420 zcmV;V0bBlwP)K#IXVCU0WnEL zK~!ko?by8y!Y~j8;4_L+P$7n333f=!B8?N4Il2QF`&>F83dh zG^e?#B261ky4;M%b`NN}U-x92Bwe0(YWILdSrbp~9=P8R^x)-*r*;o8aiMGAw_oZa zx!t4Oj8if0#0dqtlc=$z*CYOyW$8?B;OlTgGEEE=k9>MH6RMdy+*3r<%{J7yklsx4OMtt>~Tr O0000