Add crafting recipe to Energy Core
This commit is contained in:
@@ -2,6 +2,7 @@ using Terraria.ID;
|
|||||||
using Terraria;
|
using Terraria;
|
||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
using ForgottenWawiTech.Content.Rarities;
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.Materials
|
namespace ForgottenWawiTech.Content.Items.Materials
|
||||||
{
|
{
|
||||||
@@ -22,8 +23,7 @@ namespace ForgottenWawiTech.Content.Items.Materials
|
|||||||
Recipe recipe = CreateRecipe();
|
Recipe recipe = CreateRecipe();
|
||||||
recipe.AddIngredient(ModContent.ItemType<MiniSingularity>(), 5);
|
recipe.AddIngredient(ModContent.ItemType<MiniSingularity>(), 5);
|
||||||
recipe.AddIngredient(ModContent.ItemType<ContainmentUnit>(), 1);
|
recipe.AddIngredient(ModContent.ItemType<ContainmentUnit>(), 1);
|
||||||
recipe.AddIngredient(ModContent.ItemType<EnergyCore>(), 2);
|
recipe.AddTile<SingularitySealingUnit>();
|
||||||
recipe.AddTile(TileID.MythrilAnvil);
|
|
||||||
recipe.Register();
|
recipe.Register();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,24 @@ namespace ForgottenWawiTech.Content.Items.Materials
|
|||||||
Item.value = Item.buyPrice(gold: 50);
|
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)
|
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;
|
Texture2D texture = Terraria.GameContent.TextureAssets.Item[Type].Value;
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ namespace ForgottenWawiTech.Content.Items.Tiles
|
|||||||
.AddIngredient<Materials.MiniSingularity>(100)
|
.AddIngredient<Materials.MiniSingularity>(100)
|
||||||
.AddIngredient<Materials.RGBAlloy>(20)
|
.AddIngredient<Materials.RGBAlloy>(20)
|
||||||
.AddIngredient<Materials.ContainmentUnit>(20)
|
.AddIngredient<Materials.ContainmentUnit>(20)
|
||||||
.AddIngredient<Materials.EnergyCore>(10)
|
.AddIngredient(ItemID.HeavyWorkBench, 1)
|
||||||
.AddIngredient(ItemID.CoffeeCup, 1)
|
|
||||||
.AddTile(TileID.Anvils)
|
.AddTile(TileID.Anvils)
|
||||||
.Register();
|
.Register();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user