'Plate Tiles' and Draedons Arsenal structure tiles
No files matched your search
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Plates;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
|
||||
|
Before Width: | Height: | Size: 276 B |
@@ -0,0 +1,42 @@
|
||||
using CalamityMod.Items.Placeables.Walls.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.DraedonStructures
|
||||
{
|
||||
public class HazardChevronPanels : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.DraedonStructures.HazardChevronPanels>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryPanels>(), 10);
|
||||
recipe.AddIngredient(ItemID.YellowPaint);
|
||||
recipe.AddIngredient(ItemID.BlackPaint);
|
||||
recipe.SetResult(this, 10);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<HazardChevronWall>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 264 B |
@@ -0,0 +1,46 @@
|
||||
using CalamityMod.Items.Placeables.Walls.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPanels : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.DraedonStructures.LaboratoryPanels>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.IronBar);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.AddIngredient(ItemID.StoneBlock, 3);
|
||||
recipe.SetResult(this, 3);
|
||||
recipe.AddTile(TileID.HeavyWorkBench);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryShelf>(), 2);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryPanelWall>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 249 B |
@@ -0,0 +1,35 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPipePlating : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.DraedonStructures.LaboratoryPipePlating>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryPlating>(), 1);
|
||||
recipe.AddIngredient(ModContent.ItemType<RustedPipes>(), 1);
|
||||
recipe.SetResult(this, 2);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 239 B |
@@ -0,0 +1,57 @@
|
||||
using CalamityMod.Items.Placeables.Walls.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPlating : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.DraedonStructures.LaboratoryPlating>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.IronBar);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.AddIngredient(ItemID.StoneBlock, 3);
|
||||
recipe.SetResult(this, 3);
|
||||
recipe.AddTile(TileID.HeavyWorkBench);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<RustedPlating>(), 1);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryPlatingWall>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryPlateBeam>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryPlatePillar>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 219 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.DraedonStructures
|
||||
{
|
||||
public class LaboratoryShelf : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.DraedonStructures.LaboratoryShelf>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryPanels>(), 1);
|
||||
recipe.SetResult(this, 2);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<RustedShelf>(), 1);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 311 B |
@@ -0,0 +1,34 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.DraedonStructures
|
||||
{
|
||||
public class RustedPipes : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.DraedonStructures.RustedPipes>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.IronBar, 1);
|
||||
recipe.SetResult(this, 5);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 418 B |
@@ -0,0 +1,57 @@
|
||||
using CalamityMod.Items.Placeables.Walls.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.DraedonStructures
|
||||
{
|
||||
public class RustedPlating : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.DraedonStructures.RustedPlating>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.IronBar);
|
||||
recipe.anyIronBar = true;
|
||||
recipe.AddIngredient(ItemID.StoneBlock, 3);
|
||||
recipe.SetResult(this, 3);
|
||||
recipe.AddTile(TileID.HeavyWorkBench);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryPlating>(), 1);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<RustedPlatingWall>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<RustedPlateBeam>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<RustedPlatePillar>(), 4);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 314 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.DraedonStructures
|
||||
{
|
||||
public class RustedShelf : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.DraedonStructures.RustedShelf>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<RustedPlating>(), 1);
|
||||
recipe.SetResult(this, 2);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LaboratoryShelf>(), 1);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 343 B |
@@ -0,0 +1,48 @@
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Plates
|
||||
{
|
||||
public class Chaosplate : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaosplate");
|
||||
Tooltip.SetDefault("It resonates with otherworldly energy.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.createTile = ModContent.TileType<Tiles.Plates.Chaosplate>();
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.width = 13;
|
||||
item.height = 10;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 3);
|
||||
item.rare = 3;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofChaos>(), 1);
|
||||
recipe.AddIngredient(ItemID.Obsidian, 3);
|
||||
recipe.SetResult(this, 3);
|
||||
recipe.AddTile(TileID.Hellforge);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<ChaosplateWall>(), 4);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 305 B |
@@ -1,9 +1,10 @@
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables
|
||||
namespace CalamityMod.Items.Placeables.Plates
|
||||
{
|
||||
public class Cinderplate : ModItem
|
||||
{
|
||||
@@ -15,7 +16,7 @@ namespace CalamityMod.Items.Placeables
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.createTile = ModContent.TileType<Tiles.Cinderplate>();
|
||||
item.createTile = ModContent.TileType<Tiles.Plates.Cinderplate>();
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
@@ -32,15 +33,15 @@ namespace CalamityMod.Items.Placeables
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.Hellstone, 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>(), 1);
|
||||
recipe.AddIngredient(ItemID.Obsidian, 3);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this, 3);
|
||||
recipe.AddTile(TileID.Hellforge);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CinderplateWall>(), 4);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 309 B |
@@ -0,0 +1,48 @@
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Plates
|
||||
{
|
||||
public class Elumplate : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Elumplate");
|
||||
Tooltip.SetDefault("It resonates with otherworldly energy.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.createTile = ModContent.TileType<Tiles.Plates.Elumplate>();
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.width = 13;
|
||||
item.height = 10;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 3);
|
||||
item.rare = 3;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofEleum>(), 1);
|
||||
recipe.AddIngredient(ItemID.Obsidian, 3);
|
||||
recipe.SetResult(this, 3);
|
||||
recipe.AddTile(TileID.Hellforge);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<ElumplateWall>(), 4);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 307 B |
@@ -0,0 +1,47 @@
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Plates
|
||||
{
|
||||
public class Navyplate : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Navyplate");
|
||||
Tooltip.SetDefault("It resonates with otherworldly energy.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.createTile = ModContent.TileType<Tiles.Plates.Navyplate>();
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.width = 13;
|
||||
item.height = 10;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 3);
|
||||
item.rare = 3;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<SeaPrism>(), 1);
|
||||
recipe.AddIngredient(ItemID.Obsidian, 3);
|
||||
recipe.SetResult(this, 3);
|
||||
recipe.AddTile(TileID.Hellforge);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<NavyplateWall>(), 4);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 311 B |
@@ -0,0 +1,48 @@
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Plates
|
||||
{
|
||||
public class PlagueContainmentCells : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Plague Containment Cells");
|
||||
Tooltip.SetDefault("It resonates with otherworldly energy.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.createTile = ModContent.TileType<Tiles.Plates.PlagueContainmentCells>();
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.width = 13;
|
||||
item.height = 10;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 3);
|
||||
item.rare = 3;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<PlagueCellCluster>(), 1);
|
||||
recipe.AddIngredient(ItemID.Obsidian, 3);
|
||||
recipe.SetResult(this, 3);
|
||||
recipe.AddTile(TileID.Hellforge);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<PlagueContainmentCellsWall>(), 4);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 312 B |
@@ -0,0 +1,36 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class ChaosplateWall : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.ChaosplateWall>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Plates.Chaosplate>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 449 B |
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables.Walls
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Cinderplate>());
|
||||
recipe.AddIngredient(ModContent.ItemType<Plates.Cinderplate>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(18);
|
||||
recipe.AddRecipe();
|
||||
|
||||
|
Before Width: | Height: | Size: 482 B After Width: | Height: | Size: 499 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls.DraedonStructures;
|
||||
using TileItems = CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls.DraedonStructures
|
||||
{
|
||||
public class HazardChevronWall : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.HazardChevronWall>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TileItems.HazardChevronPanels>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 374 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls.DraedonStructures;
|
||||
using TileItems = CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPanelWall : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.LaboratoryPanelWall>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TileItems.LaboratoryPanels>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 337 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls.DraedonStructures;
|
||||
using TileItems = CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPlateBeam : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.LaboratoryPlateBeam>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TileItems.LaboratoryPlating>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 207 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls.DraedonStructures;
|
||||
using TileItems = CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPlatePillar : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.LaboratoryPlatePillar>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TileItems.LaboratoryPlating>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 220 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls.DraedonStructures;
|
||||
using TileItems = CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPlatingWall : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.LaboratoryPlatingWall>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TileItems.LaboratoryPlating>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 231 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls.DraedonStructures;
|
||||
using TileItems = CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls.DraedonStructures
|
||||
{
|
||||
public class RustedPlateBeam : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.RustedPlateBeam>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TileItems.RustedPlating>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 305 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls.DraedonStructures;
|
||||
using TileItems = CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls.DraedonStructures
|
||||
{
|
||||
public class RustedPlatePillar : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.RustedPlatePillar>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TileItems.RustedPlating>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 317 B |
@@ -0,0 +1,37 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls.DraedonStructures;
|
||||
using TileItems = CalamityMod.Items.Placeables.DraedonStructures;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls.DraedonStructures
|
||||
{
|
||||
public class RustedPlatingWall : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.RustedPlatingWall>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TileItems.RustedPlating>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 379 B |
@@ -0,0 +1,36 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class ElumplateWall : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.ElumplateWall>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Plates.Elumplate>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 474 B |
@@ -0,0 +1,36 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class NavyplateWall : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.NavyplateWall>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Plates.Navyplate>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 488 B |
@@ -0,0 +1,36 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class PlagueContainmentCellsWall : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 12;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 7;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createWall = ModContent.WallType<WallTiles.PlagueContainmentCellsWall>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Plates.PlagueContainmentCells>());
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 504 B |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,29 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
public class HazardChevronPanels : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
dustType = 19;
|
||||
minPick = 30;
|
||||
drop = ModContent.ItemType<Items.Placeables.DraedonStructures.HazardChevronPanels> ();
|
||||
AddMapEntry(new Color(163, 150, 73));
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return TileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 6.8 KiB |
@@ -0,0 +1,25 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPanels : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
dustType = 109;
|
||||
minPick = 30;
|
||||
drop = ModContent.ItemType<Items.Placeables.DraedonStructures.LaboratoryPanels>();
|
||||
AddMapEntry(new Color(36, 35, 37));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,30 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPipePlating : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
dustType = 32;
|
||||
minPick = 30;
|
||||
drop = ModContent.ItemType<Items.Placeables.DraedonStructures.LaboratoryPipePlating>();
|
||||
AddMapEntry(new Color(91, 64, 56));
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<RustedPipes>());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1,29 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
public class LaboratoryPlating : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
dustType = 30;
|
||||
minPick = 30;
|
||||
drop = ModContent.ItemType<Items.Placeables.DraedonStructures.LaboratoryPlating> ();
|
||||
AddMapEntry(new Color(162, 157, 150));
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return TileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 4.9 KiB |
@@ -0,0 +1,26 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
public class LaboratoryShelf : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpPlatform();
|
||||
soundType = SoundID.Tink;
|
||||
dustType = 30;
|
||||
AddMapEntry(new Color(97, 87, 86));
|
||||
drop = ModContent.ItemType<Items.Placeables.DraedonStructures.LaboratoryShelf>();
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Platforms };
|
||||
}
|
||||
|
||||
public override void PostSetDefaults()
|
||||
{
|
||||
Main.tileNoSunLight[Type] = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,29 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
public class RustedPipes : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileMerge[Type][ModContent.TileType<LaboratoryPipePlating>()] = true;
|
||||
|
||||
soundType = SoundID.Item;
|
||||
soundStyle = 52;
|
||||
dustType = 32;
|
||||
minPick = 30;
|
||||
drop = ModContent.ItemType<Items.Placeables.DraedonStructures.RustedPipes>();
|
||||
AddMapEntry(new Color(128, 90, 77));
|
||||
}
|
||||
|
||||
public override void PlaceInWorld(int i, int j, Item item)
|
||||
{
|
||||
Main.PlaySound(SoundID.Item,i * 16, j * 16, 52, 0.75f, -0.5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 5.8 KiB |
@@ -0,0 +1,29 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
public class RustedPlating : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
dustType = 32;
|
||||
minPick = 30;
|
||||
drop = ModContent.ItemType<Items.Placeables.DraedonStructures.RustedPlating>();
|
||||
AddMapEntry(new Color(128, 90, 77));
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return TileFraming.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1,26 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
public class RustedShelf : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
this.SetUpPlatform();
|
||||
soundType = SoundID.Tink;
|
||||
dustType = 32;
|
||||
AddMapEntry(new Color(128, 90, 77));
|
||||
drop = ModContent.ItemType<Items.Placeables.DraedonStructures.RustedShelf>();
|
||||
disableSmartCursor = true;
|
||||
adjTiles = new int[] { TileID.Platforms };
|
||||
}
|
||||
|
||||
public override void PostSetDefaults()
|
||||
{
|
||||
Main.tileNoSunLight[Type] = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -5,9 +5,9 @@ using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles
|
||||
namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public class Cinderplate : ModTile
|
||||
public class Chaosplate : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -20,8 +20,8 @@ namespace CalamityMod.Tiles
|
||||
soundType = SoundID.Tink;
|
||||
mineResist = 1f;
|
||||
minPick = 65;
|
||||
drop = ModContent.ItemType<Items.Placeables.Cinderplate>();
|
||||
AddMapEntry(new Color(173, 52, 70));
|
||||
drop = ModContent.ItemType<Items.Placeables.Plates.Chaosplate>();
|
||||
AddMapEntry(new Color(235, 108, 108));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
@@ -31,14 +31,31 @@ namespace CalamityMod.Tiles
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void RandomUpdate(int i, int j)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 60, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/CinderplateGlow");
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/Plates/ChaosplateGlow");
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
// Glowmask 'pulse' effect
|
||||
Texture2D pulseMap = ModContent.GetTexture("CalamityMod/Tiles/Plates/ChaosplatePulse");
|
||||
int factor = (int)Main.time % pulseMap.Width;
|
||||
Color[] pulseColours = new Color[pulseMap.Width];
|
||||
pulseMap.GetData(pulseColours);
|
||||
float brightness = pulseColours[factor].R / 255f;
|
||||
int drawBrightness = (int)(40 * brightness) + 10;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(drawBrightness, drawBrightness, drawBrightness, drawBrightness));
|
||||
|
||||
// If these tiles cause lag, comment out the pulse effect code and uncomment this:
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.halfBrick() && trackTile.slope() == 0)
|
||||
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 715 B |
@@ -0,0 +1,84 @@
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public class Cinderplate : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
mineResist = 1f;
|
||||
minPick = 65;
|
||||
drop = ModContent.ItemType<Items.Placeables.Plates.Cinderplate>();
|
||||
AddMapEntry(new Color(242, 216, 131));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 6, 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 RandomUpdate(int i, int j)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 6, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/Plates/CinderplateGlow");
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
|
||||
// Glowmask 'pulse' effect
|
||||
Texture2D pulseMap = ModContent.GetTexture("CalamityMod/Tiles/Plates/CinderplatePulse");
|
||||
int factor = (int)Main.time % pulseMap.Width;
|
||||
Color[] pulseColours = new Color[pulseMap.Width];
|
||||
pulseMap.GetData(pulseColours);
|
||||
float brightness = pulseColours[factor].R / 255f;
|
||||
int drawBrightness = (int)(40 * brightness) + 10;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(drawBrightness, drawBrightness, drawBrightness, drawBrightness));
|
||||
|
||||
// If these tiles cause lag, comment out the pulse effect code and uncomment this:
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.halfBrick() && trackTile.slope() == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
else if (trackTile.halfBrick())
|
||||
{
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 271 B |
@@ -0,0 +1,84 @@
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public class Elumplate : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
mineResist = 1f;
|
||||
minPick = 65;
|
||||
drop = ModContent.ItemType<Items.Placeables.Plates.Elumplate>();
|
||||
AddMapEntry(new Color(121, 180, 212));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 247, 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 RandomUpdate(int i, int j)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 247, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/Plates/ElumplateGlow");
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
|
||||
// Glowmask 'pulse' effect
|
||||
Texture2D pulseMap = ModContent.GetTexture("CalamityMod/Tiles/Plates/ElumplatePulse");
|
||||
int factor = (int)Main.time % pulseMap.Width;
|
||||
Color[] pulseColours = new Color[pulseMap.Width];
|
||||
pulseMap.GetData(pulseColours);
|
||||
float brightness = pulseColours[factor].R / 255f;
|
||||
int drawBrightness = (int)(40 * brightness) + 10;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(drawBrightness, drawBrightness, drawBrightness, drawBrightness));
|
||||
|
||||
// If these tiles cause lag, comment out the pulse effect code and uncomment this:
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.halfBrick() && trackTile.slope() == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
else if (trackTile.halfBrick())
|
||||
{
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 337 B |
@@ -0,0 +1,84 @@
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public class Navyplate : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
mineResist = 1f;
|
||||
minPick = 65;
|
||||
drop = ModContent.ItemType<Items.Placeables.Plates.Navyplate>();
|
||||
AddMapEntry(new Color(85, 151, 196));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 187, 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 RandomUpdate(int i, int j)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 187, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/Plates/NavyplateGlow");
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
|
||||
// Glowmask 'pulse' effect
|
||||
Texture2D pulseMap = ModContent.GetTexture("CalamityMod/Tiles/Plates/NavyplatePulse");
|
||||
int factor = (int)Main.time % pulseMap.Width;
|
||||
Color[] pulseColours = new Color[pulseMap.Width];
|
||||
pulseMap.GetData(pulseColours);
|
||||
float brightness = pulseColours[factor].R / 255f;
|
||||
int drawBrightness = (int)(40 * brightness) + 10;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(drawBrightness, drawBrightness, drawBrightness, drawBrightness));
|
||||
|
||||
// If these tiles cause lag, comment out the pulse effect code and uncomment this:
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.halfBrick() && trackTile.slope() == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
else if (trackTile.halfBrick())
|
||||
{
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 259 B |
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Tiles.Plates
|
||||
{
|
||||
public class PlagueContainmentCells : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
mineResist = 1f;
|
||||
minPick = 65;
|
||||
drop = ModContent.ItemType<Items.Placeables.Plates.PlagueContainmentCells>();
|
||||
AddMapEntry(new Color(128, 188, 67));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 89, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity.Y = -0.15f;
|
||||
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 1, 0f, 0f, 1, new Color(100, 100, 100), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void RandomUpdate(int i, int j)
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 89, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity.Y = -0.15f;
|
||||
}
|
||||
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
int xPos = Main.tile[i, j].frameX;
|
||||
int yPos = Main.tile[i, j].frameY;
|
||||
Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/Plates/PlagueContainmentCellsGlow");
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero;
|
||||
|
||||
// Glowmask 'pulse' effect
|
||||
Texture2D pulseMap = ModContent.GetTexture("CalamityMod/Tiles/Plates/PlagueContainmentCellsPulse");
|
||||
int factor = (int)Main.time % pulseMap.Width;
|
||||
Color[] pulseColours = new Color[pulseMap.Width];
|
||||
pulseMap.GetData(pulseColours);
|
||||
float brightness = pulseColours[factor].R / 255f;
|
||||
int drawBrightness = (int)(40 * brightness) + 10;
|
||||
Color drawColour = GetDrawColour(i, j, new Color(drawBrightness, drawBrightness, drawBrightness, drawBrightness));
|
||||
|
||||
// If these tiles cause lag, comment out the pulse effect code and uncomment this:
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.halfBrick() && trackTile.slope() == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
else if (trackTile.halfBrick())
|
||||
{
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
private Color GetDrawColour(int i, int j, Color colour)
|
||||
{
|
||||
int colType = Main.tile[i, j].color();
|
||||
Color paintCol = WorldGen.paintColor(colType);
|
||||
if (colType >= 13 && colType <= 24)
|
||||
{
|
||||
colour.R = (byte)(paintCol.R / 255f * colour.R);
|
||||
colour.G = (byte)(paintCol.G / 255f * colour.G);
|
||||
colour.B = (byte)(paintCol.B / 255f * colour.B);
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 294 B |
@@ -0,0 +1,29 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Walls
|
||||
{
|
||||
public class ChaosplateWall : ModWall
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.ChaosplateWall>();
|
||||
AddMapEntry(new Color(123, 50, 66));
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 10 KiB |
@@ -11,7 +11,7 @@ namespace CalamityMod.Walls
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
drop = ModContent.ItemType<Items.Placeables.Walls.CinderplateWall>();
|
||||
AddMapEntry(new Color(97, 22, 57));
|
||||
AddMapEntry(new Color(166, 111, 75));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
|
||||
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 11 KiB |