From 4efb113078a6e1a00cbfd3bfc6a2ef0cb5b5903b Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Fri, 31 Dec 2021 23:06:53 +0100 Subject: [PATCH] Edited recipe --- Items/Weapons/Melee/BiomeBlade.cs | 19 +++++++------------ Utilities/CalamityRecipes.cs | 12 ++++++++++++ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/Items/Weapons/Melee/BiomeBlade.cs b/Items/Weapons/Melee/BiomeBlade.cs index d16e40a39f..a570cef232 100644 --- a/Items/Weapons/Melee/BiomeBlade.cs +++ b/Items/Weapons/Melee/BiomeBlade.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.DataStructures; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Particles; using CalamityMod.Projectiles.Melee; @@ -118,23 +119,17 @@ namespace CalamityMod.Items.Weapons.Melee item.autoReuse = true; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = ItemRarityID.Orange; - item.shoot = ModContent.ProjectileType(); item.shootSpeed = 12f; } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.WoodenSword); - recipe.AddIngredient(ItemID.DirtBlock, 20); - recipe.AddIngredient(ItemID.SandBlock, 20); - recipe.AddIngredient(ItemID.IceBlock, 20); //intentionally not any ice - recipe.AddRecipeGroup("AnyEvilBlock", 20); - // recipe.AddIngredient(ItemID.GlowingMushroom, 20); Cut these ingredients due to no longer synergizing with these specific biomes - // recipe.AddIngredient(ItemID.Marble, 20); - // recipe.AddIngredient(ItemID.Granite, 20); - // recipe.AddIngredient(ItemID.Hellstone, 20); - // recipe.AddIngredient(ItemID.Coral, 20); + recipe.AddRecipeGroup("AnyWoodenSword"); + recipe.AddIngredient(ItemID.DirtBlock, 50); + recipe.AddIngredient(ItemID.StoneBlock, 50); + recipe.AddIngredient(ItemID.HellstoneBar, 5); + recipe.AddIngredient(ItemType(), 5); recipe.AddTile(TileID.Anvils); recipe.SetResult(this); recipe.AddRecipe(); @@ -152,7 +147,7 @@ namespace CalamityMod.Items.Weapons.Melee public override bool CloneNewInstances => true; - public override ModItem Clone(Item item) + public override ModItem Clone(Item item) //need to add shit to properly save those { var clone = base.Clone(item); diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index e2626591ce..0a3bdad1c0 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -1297,6 +1297,18 @@ namespace CalamityMod }); RecipeGroup.RegisterGroup("LunarHamaxe", group); + group = new RecipeGroup(() => "Any Wooden Sword", new int[] + { + ItemID.WoodenSword, + ItemID.BorealWoodSword, + ItemID.RichMahoganySword, + ItemID.PalmWoodSword, + ItemID.EbonwoodSword, + ItemID.ShadewoodSword, + ItemID.PearlwoodSword + }); + RecipeGroup.RegisterGroup("AnyWoodenSword", group); + group = new RecipeGroup(() => "Any Large Gem", new int[] { ItemID.LargeAmber,