From 2c27a831704da4897473312d938ee3b6f6f72d9f Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 30 Mar 2020 15:44:26 -0400 Subject: [PATCH] scuttler's jewel tooltip fix --- Items/Accessories/ScuttlersJewel.cs | 2 +- .../Fishing/BrimstoneCragCatches/Bloodfin.cs | 11 +++---- Projectiles/CalamityGlobalProjectile.cs | 2 +- Tiles/Astral/AstralTree.cs | 29 ++++--------------- Utilities/CalamityRecipes.cs | 2 +- 5 files changed, 12 insertions(+), 34 deletions(-) diff --git a/Items/Accessories/ScuttlersJewel.cs b/Items/Accessories/ScuttlersJewel.cs index 6fa0ff6283..c01bd63a66 100644 --- a/Items/Accessories/ScuttlersJewel.cs +++ b/Items/Accessories/ScuttlersJewel.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { DisplayName.SetDefault("Scuttler's Jewel"); - Tooltip.SetDefault("Rogue javelin projectiles have a chance spawn a jewel spike when destroyed"); + Tooltip.SetDefault("Rogue javelin projectiles have a chance to spawn a jewel spike when destroyed"); } public override void SetDefaults() diff --git a/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs b/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs index 7c16239701..e4d965dc09 100644 --- a/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs +++ b/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs @@ -11,9 +11,9 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches public override void SetStaticDefaults() { DisplayName.SetDefault("Bloodfin"); - Tooltip.SetDefault(@"Grants a buff that boosts life regen for 10 seconds -The life regen boost is stronger if below 75% health -Angiogenesis"); + Tooltip.SetDefault(@"The wonders of angiogenesis +Grants a buff that boosts life regen for 10 seconds +The life regen boost is stronger if below 75% health"); } public override void SetDefaults() @@ -34,10 +34,7 @@ Angiogenesis"); item.potion = true; } - public override bool CanUseItem(Player player) - { - return player.FindBuffIndex(BuffID.PotionSickness) == -1; - } + public override bool CanUseItem(Player player) => player.FindBuffIndex(BuffID.PotionSickness) == -1; public override void OnConsumeItem(Player player) { diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index e8b44105e2..5feaaf6998 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles private int counter = 0; private int counter2 = 0; - public int lineColor = 0; //holy mother of god, Eater of Shoals was a pain in the ass + public int lineColor = 0; //Note: Although this was intended for fishing line colors, I use this as an AI variable a lot because vanilla only has 4 that sometimes are already in use. ~Ben public bool extorterBoost = false; public bool overridesMinionDamagePrevention = false; diff --git a/Tiles/Astral/AstralTree.cs b/Tiles/Astral/AstralTree.cs index dc42b6b5de..93e9b6d296 100644 --- a/Tiles/Astral/AstralTree.cs +++ b/Tiles/Astral/AstralTree.cs @@ -11,29 +11,10 @@ namespace CalamityMod.Tiles.Astral return ModContent.GetTexture("CalamityMod/Tiles/Astral/AstralTree_Tops"); } - public override Texture2D GetBranchTextures(int i, int j, int trunkOffset, ref int frame) - { - return ModContent.GetTexture("CalamityMod/Tiles/Astral/AstralTree_Branches"); - } - - public override Texture2D GetTexture() - { - return ModContent.GetTexture("CalamityMod/Tiles/Astral/AstralTree"); - } - - public override int DropWood() - { - return ModContent.ItemType(); - } - - public override int CreateDust() - { - return ModContent.DustType(); - } - - public override int GrowthFXGore() - { - return -1; - } + public override Texture2D GetBranchTextures(int i, int j, int trunkOffset, ref int frame) => ModContent.GetTexture("CalamityMod/Tiles/Astral/AstralTree_Branches"); + public override Texture2D GetTexture() => ModContent.GetTexture("CalamityMod/Tiles/Astral/AstralTree"); + public override int DropWood() => ModContent.ItemType(); + public override int CreateDust() => ModContent.DustType(); + public override int GrowthFXGore() => -1; } } diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index a3b6d2ece0..6101906b9d 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -868,7 +868,7 @@ namespace CalamityMod sand.ValidItems.Add(ModContent.ItemType()); RecipeGroup wood = RecipeGroup.recipeGroups[RecipeGroup.recipeGroupIDs["Wood"]]; - wood.ValidItems.Add(ModContent.ItemType()); + wood.ValidItems.Add(ModContent.ItemType()); //Astral Monolith was decidedly not wood-like enough //New Groups RecipeGroup group = new RecipeGroup(() => "Any Copper Bar", new int[]