30 lines
895 B
C#
30 lines
895 B
C#
using Terraria.ID;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using ForgottenWawiTech.Content.Rarities;
|
|
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
|
|
|
namespace ForgottenWawiTech.Content.Items.Materials
|
|
{
|
|
public class ControlledSingularity : ModItem
|
|
{
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 20;
|
|
Item.height = 20;
|
|
Item.maxStack = 9999;
|
|
Item.rare = ModContent.RarityType<SingularityItem>();
|
|
Item.value = Item.buyPrice(gold: 50);
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
Recipe recipe = CreateRecipe();
|
|
recipe.AddIngredient(ModContent.ItemType<MiniSingularity>(), 5);
|
|
recipe.AddIngredient(ModContent.ItemType<ContainmentUnit>(), 1);
|
|
recipe.AddTile<SingularitySealingUnit>();
|
|
recipe.Register();
|
|
}
|
|
}
|
|
} |