From 538b6027004303d2da82e577faa6a3be5acdf79f Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 11 Jun 2022 20:46:51 -0500 Subject: [PATCH] Removed the Sea Shell accessory --- CalPlayer/CalamityPlayer.cs | 2 - CalPlayer/CalamityPlayerMiscEffects.cs | 12 ---- Items/Accessories/SeaShell.cs | 34 ---------- Items/Accessories/SeaShell.png | Bin 375 -> 0 bytes Items/Accessories/TheAbsorber.cs | 4 -- Items/Accessories/TheSponge.cs | 2 - Items/Weapons/Typeless/MarkedMagnum.cs | 60 ----------------- Items/Weapons/Typeless/MarkedMagnum.png | Bin 443 -> 0 bytes Projectiles/Typeless/MarkRound.cs | 83 ------------------------ 9 files changed, 197 deletions(-) delete mode 100644 Items/Accessories/SeaShell.cs delete mode 100644 Items/Accessories/SeaShell.png delete mode 100644 Items/Weapons/Typeless/MarkedMagnum.cs delete mode 100644 Items/Weapons/Typeless/MarkedMagnum.png delete mode 100644 Projectiles/Typeless/MarkRound.cs diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 84e0fe0465..0cced6c4a0 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -465,7 +465,6 @@ namespace CalamityMod.CalPlayer public bool dAmulet = false; public bool fCarapace = false; public bool gShell = false; - public bool seaShell = false; public bool absorber = false; public bool aAmpoule = false; public bool sponge = false; @@ -1640,7 +1639,6 @@ namespace CalamityMod.CalPlayer dAmulet = false; fCarapace = false; gShell = false; - seaShell = false; absorber = false; aAmpoule = false; sponge = false; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 5f83880e17..55e2316cbf 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1405,18 +1405,6 @@ namespace CalamityMod.CalPlayer Player.manaRegenBonus += 4; } - // Sea Shell bonus - if (seaShell) - { - if (Player.IsUnderwater()) - { - Player.statDefense += 3; - Player.endurance += 0.05f; - Player.moveSpeed += 0.1f; - Player.ignoreWater = true; - } - } - // Affliction bonus if (affliction || afflicted) { diff --git a/Items/Accessories/SeaShell.cs b/Items/Accessories/SeaShell.cs deleted file mode 100644 index e7b558ff0c..0000000000 --- a/Items/Accessories/SeaShell.cs +++ /dev/null @@ -1,34 +0,0 @@ -using CalamityMod.CalPlayer; -using Terraria; -using Terraria.ModLoader; -using Terraria.ID; - -namespace CalamityMod.Items.Accessories -{ - public class SeaShell : ModItem - { - public override void SetStaticDefaults() - { - SacrificeTotal = 1; - DisplayName.SetDefault("Sea Shell"); - Tooltip.SetDefault("Increased defense and damage reduction when submerged in liquid\n" + - "Increased movement speed when submerged in liquid"); - } - - public override void SetDefaults() - { - Item.defense = 3; - Item.width = 20; - Item.height = 24; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; - Item.rare = ItemRarityID.Green; - Item.accessory = true; - } - - public override void UpdateAccessory(Player player, bool hideVisual) - { - CalamityPlayer modPlayer = player.Calamity(); - modPlayer.seaShell = true; - } - } -} diff --git a/Items/Accessories/SeaShell.png b/Items/Accessories/SeaShell.png deleted file mode 100644 index 21fa8d21138aea06f98332bdd49ed06391b56ef3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 375 zcmeAS@N?(olHy`uVBq!ia0vp^azHG>!3HGXX8P_2QjEnx?oJHr&dIz4a#+$GeH|GX zHuiJ>Nn{1`ISV`@iy0XB4ude`@%$AjKtah8*NBqf{Irtt#G+J&g2c?c61}|C5(N`I z13g1?%+RMb5@%=n9hZES^w~aBE$rgws*?})S^VKXdt~B^(*3Cg{`H1A z{AZ6uyMC)X6L8u8T=)m6t4FmM-YF}7I5+26x~o^QVXu@AZ{Yn~U5eUsG$u$b+IRO+ zMr)Mz9(Q>~asDsj#xvTiq*&INMCndgufr~NxnTLM8KEy47Rd(~zF-gG_ry! R(m*dWc)I$ztaD0e0sw}XiW~p{ diff --git a/Items/Accessories/TheAbsorber.cs b/Items/Accessories/TheAbsorber.cs index 43b94cd9a6..a0b0cd5e0d 100644 --- a/Items/Accessories/TheAbsorber.cs +++ b/Items/Accessories/TheAbsorber.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Items.Accessories Tooltip.SetDefault("5% increased movement and jump speed\n" + "+20 max life and mana\n" + "Standing still boosts life and mana regen\n" + - "Increased defense, movement speed and damage reduction while submerged in liquid\n" + "Enemies take damage when they touch you\n" + "You emit a cloud of mushroom spores when you are hit\n" + "7% increased damage reduction\n" + @@ -41,7 +40,6 @@ namespace CalamityMod.Items.Accessories // Removed Giant Shell speed boost from The Absorber // modPlayer.gShell = true; modPlayer.fCarapace = true; - modPlayer.seaShell = true; modPlayer.absorber = true; player.statManaMax2 += 20; player.buffImmune[ModContent.BuffType()] = true; @@ -51,7 +49,6 @@ namespace CalamityMod.Items.Accessories { CreateRecipe(). AddIngredient(). - AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(). @@ -65,7 +62,6 @@ namespace CalamityMod.Items.Accessories CreateRecipe(). AddIngredient(). - AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(). diff --git a/Items/Accessories/TheSponge.cs b/Items/Accessories/TheSponge.cs index c800972d9a..9f5953d439 100644 --- a/Items/Accessories/TheSponge.cs +++ b/Items/Accessories/TheSponge.cs @@ -24,7 +24,6 @@ namespace CalamityMod.Items.Accessories "+30 max life and mana\n" + "5% increased movement and jump speed\n" + "Standing still boosts life and mana regen\n" + - "Increased defense, movement speed and damage reduction while submerged in liquid\n" + "Enemies take damage when they touch you\n" + "You emit a cloud of mushroom spores when you are hit\n" + "6.25% of the damage from enemy attacks is absorbed and converted into healing\n" + @@ -48,7 +47,6 @@ namespace CalamityMod.Items.Accessories // Removed Giant Shell speed boost from Sponge // modPlayer.gShell = true; modPlayer.fCarapace = true; - modPlayer.seaShell = true; modPlayer.absorber = true; modPlayer.sponge = true; player.statManaMax2 += 30; diff --git a/Items/Weapons/Typeless/MarkedMagnum.cs b/Items/Weapons/Typeless/MarkedMagnum.cs deleted file mode 100644 index 9aa6daa32b..0000000000 --- a/Items/Weapons/Typeless/MarkedMagnum.cs +++ /dev/null @@ -1,60 +0,0 @@ -using CalamityMod.Projectiles.Typeless; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Weapons.Typeless -{ - public class MarkedMagnum : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Marked Magnum"); - Tooltip.SetDefault("Shots reduce enemy protection\n" + - "This weapon scales with all your damage stats at once"); - SacrificeTotal = 1; - } - - public override void SetDefaults() - { - Item.DamageType = AverageDamageClass.Instance; - Item.damage = 4; - Item.width = 54; - Item.height = 20; - Item.useTime = 15; - Item.useAnimation = 15; - Item.useStyle = ItemUseStyleID.Shoot; - Item.noMelee = true; - Item.knockBack = 3f; - Item.value = Item.buyPrice(0, 2, 0, 0); - Item.rare = ItemRarityID.Green; - Item.UseSound = SoundID.Item33; - Item.autoReuse = false; - Item.shootSpeed = 12f; - Item.shoot = ModContent.ProjectileType(); - } - - public override Vector2? HoldoutOffset() - { - return new Vector2(-5, 0); - } - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, 0f); - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.HellstoneBar, 7). - AddIngredient(ItemID.Obsidian, 15). - AddIngredient(ItemID.GlowingMushroom, 15). - AddTile(TileID.Anvils). - Register(); - } - } -} diff --git a/Items/Weapons/Typeless/MarkedMagnum.png b/Items/Weapons/Typeless/MarkedMagnum.png deleted file mode 100644 index 9b22e7e3d7ebd1782a53d6f7edd99f64711405de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 443 zcmV;s0Yv_ZP)7%A`(?PXrZB?prWE+0h%np0!%^82w8(2*vIIK-^qG(#;ML6k*xo{AAbEj z&PAD~#^-pvF7?t@=YD(EKb$F&pv<>o{hRaQ=CRa^z_-)6%u9TGcVFi9@_brd>iY3; zxGHPwQlsWzb6;&@ezsvZMi}^d{Vw%#du})li81@+U5Gl$J4f83H$k8M)4wzF`E)L8 zi{reBkM~mQ<%aa3yg8`uo6A_fMQ5A0d?RZn=A1?c5oQp|>qB{SP@T|>PA_KTPBLpKO$mp;e?;T7a1IPgC>&+WpClndN{DT`VxFvuAWB_+# lgh57n)c "CalamityMod/Projectiles/LaserProj"; - - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Laser"); - } - - public override void SetDefaults() - { - Projectile.width = 5; - Projectile.height = 5; - Projectile.friendly = true; - Projectile.alpha = 255; - Projectile.penetrate = 1; - Projectile.extraUpdates = 2; - Projectile.timeLeft = 300; - } - - public override void AI() - { - if (Projectile.alpha > 0) - { - Projectile.alpha -= 25; - } - if (Projectile.alpha < 0) - { - Projectile.alpha = 0; - } - Lighting.AddLight((int)Projectile.Center.X / 16, (int)Projectile.Center.Y / 16, 0.5f, 0f, 0.7f); - float num55 = 30f; - float num56 = 2f; - if (Projectile.ai[1] == 0f) - { - Projectile.localAI[0] += num56; - if (Projectile.localAI[0] > num55) - { - Projectile.localAI[0] = num55; - } - } - else - { - Projectile.localAI[0] -= num56; - if (Projectile.localAI[0] <= 0f) - { - Projectile.Kill(); - } - } - } - - public override Color? GetAlpha(Color lightColor) => new Color(200, 0, 250, 0); - - public override bool PreDraw(ref Color lightColor) => Projectile.DrawBeam(30f, 2f, lightColor); - - public override void Kill(int timeLeft) - { - int dustAmt = Main.rand.Next(3, 7); - for (int d = 0; d < dustAmt; d++) - { - int purple = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, 173, 0f, 0f, 100, default, 2.1f); - Main.dust[purple].velocity *= 2f; - Main.dust[purple].noGravity = true; - } - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(ModContent.BuffType(), 480); - } - - public override void OnHitPvp(Player target, int damage, bool crit) - { - target.AddBuff(ModContent.BuffType(), 480); - } - } -}