Files
CalamityModPublic/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs
T
Altixal c04db10819 Recipe newlines
+ Sea Minnow Jar recipe edit
2023-10-01 12:17:52 +07:00

43 lines
1.5 KiB
C#

using CalamityMod.Items.Placeables.Walls;
using Terraria.ID;
using Terraria.ModLoader; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");"
namespace CalamityMod.Items.Placeables.FurnitureProfaned
{
public class RunicProfanedBrick : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
}
public override void SetDefaults()
{
Item.width = 12;
Item.height = 12;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.createTile = ModContent.TileType<Tiles.FurnitureProfaned.RunicProfanedBrick>();
}
public override void AddRecipes()
{
CreateRecipe(5).
AddIngredient<ProfanedRock>(4).
AddIngredient<ProfanedCrystal>().
AddTile(TileID.LunarCraftingStation).
Register();
CreateRecipe().
AddIngredient<RunicProfanedBrickWall>(4).
AddTile(TileID.WorkBenches).
Register();
}
}
}