diff --git a/Content/Items/Materials/ControlledSingularity.cs b/Content/Items/Materials/ControlledSingularity.cs index d2aef45..1a3d683 100644 --- a/Content/Items/Materials/ControlledSingularity.cs +++ b/Content/Items/Materials/ControlledSingularity.cs @@ -2,6 +2,7 @@ using Terraria.ID; using Terraria; using Terraria.ModLoader; using ForgottenWawiTech.Content.Rarities; +using ForgottenWawiTech.Content.Tiles.CraftingStations; namespace ForgottenWawiTech.Content.Items.Materials { @@ -22,8 +23,7 @@ namespace ForgottenWawiTech.Content.Items.Materials Recipe recipe = CreateRecipe(); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType(), 1); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddTile(TileID.MythrilAnvil); + recipe.AddTile(); recipe.Register(); } } diff --git a/Content/Items/Materials/EnergyCore.cs b/Content/Items/Materials/EnergyCore.cs index 5b9f169..4e8eebc 100644 --- a/Content/Items/Materials/EnergyCore.cs +++ b/Content/Items/Materials/EnergyCore.cs @@ -30,6 +30,24 @@ namespace ForgottenWawiTech.Content.Items.Materials Item.value = Item.buyPrice(gold: 50); } + public override void AddRecipes() + { + Recipe recipe = CreateRecipe() + .AddIngredient(ItemID.FallenStar, 5) + .AddIngredient(1) + .AddIngredient(ItemID.FragmentNebula, 2) + .AddIngredient(ItemID.FragmentSolar, 2) + .AddIngredient(ItemID.FragmentVortex, 2) + .AddIngredient(ItemID.FragmentStardust, 2) + .AddTile(TileID.MythrilAnvil); + // If Calamity Mod is loaded, add Cosmilite bars to the recipe + if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod)) + { + recipe.AddIngredient(calamityMod.Find("CosmiliteBar").Type, 3); + } + recipe.Register(); + } + public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) { Texture2D texture = Terraria.GameContent.TextureAssets.Item[Type].Value; diff --git a/Content/Items/Tiles/SingularitySealingUnitItem.cs b/Content/Items/Tiles/SingularitySealingUnitItem.cs index ff80073..7b44531 100644 --- a/Content/Items/Tiles/SingularitySealingUnitItem.cs +++ b/Content/Items/Tiles/SingularitySealingUnitItem.cs @@ -19,8 +19,7 @@ namespace ForgottenWawiTech.Content.Items.Tiles .AddIngredient(100) .AddIngredient(20) .AddIngredient(20) - .AddIngredient(10) - .AddIngredient(ItemID.CoffeeCup, 1) + .AddIngredient(ItemID.HeavyWorkBench, 1) .AddTile(TileID.Anvils) .Register(); }