Add crafting recipe to Energy Core
This commit is contained in:
@@ -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<ControlledSingularity>(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<ModItem>("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;
|
||||
|
||||
Reference in New Issue
Block a user