thanks github
No files matched your search
@@ -1,38 +0,0 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAbyss
|
||||
{
|
||||
public class AbyssWorkBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.SetNameOverride("Abyss Work Bench");
|
||||
Item.width = 28;
|
||||
Item.height = 14;
|
||||
Item.maxStack = 99;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.value = 0;
|
||||
Item.createTile = ModContent.TileType<Tiles.FurnitureAbyss.AbyssWorkBench>();
|
||||
|
||||
// This is Ozz's item of choice for placing inactive Power Cell Factories for lab schematics. It should not do this normally.
|
||||
// item.createTile = ModContent.TileType<Tiles.DraedonStructures.InactivePowerCellFactory>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).AddIngredient(ModContent.ItemType<SmoothAbyssGravel>(), 10).AddTile(ModContent.TileType<VoidCondenser>()).Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 306 B |
@@ -1,33 +0,0 @@
|
||||
using CalamityMod.Tiles.FurnitureAcidwood;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAcidwood
|
||||
{
|
||||
public class AcidwoodWorkBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.SetNameOverride("Acidwood Work Bench");
|
||||
Item.width = 28;
|
||||
Item.height = 20;
|
||||
Item.maxStack = 999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<AcidwoodWorkBenchTile>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).AddIngredient(ModContent.ItemType<Acidwood>(), 10).Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 434 B |
@@ -1,36 +0,0 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
{
|
||||
public class AncientWorkBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.SetNameOverride("Ancient Work Bench");
|
||||
Item.width = 28;
|
||||
Item.height = 14;
|
||||
Item.maxStack = 99;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.consumable = true;
|
||||
Item.value = 0;
|
||||
Item.createTile = ModContent.TileType<Tiles.FurnitureAncient.AncientWorkBench>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).AddIngredient(ModContent.ItemType<BrimstoneSlag>(), 10).AddTile(ModContent.TileType<AncientAltar>()).Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 404 B |
@@ -1,36 +0,0 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAshen
|
||||
{
|
||||
public class AshenWorkBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.SetNameOverride("Ashen Work Bench");
|
||||
Item.width = 28;
|
||||
Item.height = 14;
|
||||
Item.maxStack = 99;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.consumable = true;
|
||||
Item.value = 0;
|
||||
Item.createTile = ModContent.TileType<Tiles.FurnitureAshen.AshenWorkBench>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).AddIngredient(ModContent.ItemType<SmoothBrimstoneSlag>(), 10).AddTile(ModContent.TileType<AshenAltar>()).Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 394 B |
@@ -1,34 +0,0 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureCosmilite
|
||||
{
|
||||
public class CosmiliteWorkBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.SetNameOverride("Cosmilite Work Bench");
|
||||
Item.width = 28;
|
||||
Item.height = 14;
|
||||
Item.maxStack = 99;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<Tiles.FurnitureCosmilite.CosmiliteWorkBench>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).AddIngredient(ModContent.ItemType<CosmiliteBrick>(), 10).AddTile(ModContent.TileType<CosmicAnvil>()).Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 485 B |
@@ -1,37 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAbyss
|
||||
{
|
||||
public class AbyssWorkBench : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpWorkBench(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Work Bench");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.WorkBenches };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(100, 130, 150), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType<Items.Placeables.FurnitureAbyss.AbyssWorkBench>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 348 B |
@@ -1,38 +0,0 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAcidwood
|
||||
{
|
||||
public class AcidwoodWorkBenchTile : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpWorkBench();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Work Bench");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.WorkBenches };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 7, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType<AcidwoodWorkBench>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 459 B |
@@ -1,38 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAncient
|
||||
{
|
||||
public class AncientWorkBench : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpWorkBench(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Work Bench");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.WorkBenches };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 60, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(100, 100, 100), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType<Items.Placeables.FurnitureAncient.AncientWorkBench>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 448 B |
@@ -1,38 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureAshen
|
||||
{
|
||||
public class AshenWorkBench : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpWorkBench(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Work Bench");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.WorkBenches };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 60, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(100, 100, 100), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType<Items.Placeables.FurnitureAshen.AshenWorkBench>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 439 B |
@@ -1,38 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureCosmilite
|
||||
{
|
||||
public class CosmiliteWorkBench : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpWorkBench(true);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Work Bench");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.WorkBenches };
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 132, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 134, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType<Items.Placeables.FurnitureCosmilite.CosmiliteWorkBench>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 557 B |