Commit of decompiled and "updated" code.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Tiles;
|
||||
|
||||
public class RainbowStation : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Rainbow Station");
|
||||
Tooltip.SetDefault("Used to craft rainbow weapons");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 40;
|
||||
Item.height = 24;
|
||||
Item.maxStack = 99;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.expert = true;
|
||||
Item.createTile = ModContent.TileType<global::FabusMod.Tiles.RainbowStation>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.LunarCraftingStation, 1);
|
||||
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 12);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user