diff --git a/Items/Accessories/DimensionalSoulArtifact.cs b/Items/Accessories/DimensionalSoulArtifact.cs index 06d11a89dd..cf4d0decef 100644 --- a/Items/Accessories/DimensionalSoulArtifact.cs +++ b/Items/Accessories/DimensionalSoulArtifact.cs @@ -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; diff --git a/Items/Accessories/EldritchSoulArtifact.cs b/Items/Accessories/EldritchSoulArtifact.cs index a0c30cd2f1..07d49c5be4 100644 --- a/Items/Accessories/EldritchSoulArtifact.cs +++ b/Items/Accessories/EldritchSoulArtifact.cs @@ -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; diff --git a/Items/Accessories/GodlySoulArtifact.cs b/Items/Accessories/GodlySoulArtifact.cs index 30856db826..b146ccbf2b 100644 --- a/Items/Accessories/GodlySoulArtifact.cs +++ b/Items/Accessories/GodlySoulArtifact.cs @@ -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; diff --git a/Items/Accessories/ProfanedSoulArtifact.cs b/Items/Accessories/ProfanedSoulArtifact.cs index dced5e1e7f..8697d7be47 100644 --- a/Items/Accessories/ProfanedSoulArtifact.cs +++ b/Items/Accessories/ProfanedSoulArtifact.cs @@ -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; diff --git a/Items/NormalityRelocator.cs b/Items/NormalityRelocator.cs index f45b610a90..e83c8d9212 100644 --- a/Items/NormalityRelocator.cs +++ b/Items/NormalityRelocator.cs @@ -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; diff --git a/Items/Placeables/Cinderplate.png b/Items/Placeables/Cinderplate.png deleted file mode 100644 index 7cdf92d326..0000000000 Binary files a/Items/Placeables/Cinderplate.png and /dev/null differ diff --git a/Items/Placeables/DraedonStructures/HazardChevronPanels.cs b/Items/Placeables/DraedonStructures/HazardChevronPanels.cs new file mode 100644 index 0000000000..335d5d507e --- /dev/null +++ b/Items/Placeables/DraedonStructures/HazardChevronPanels.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 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(), 4); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/DraedonStructures/HazardChevronPanels.png b/Items/Placeables/DraedonStructures/HazardChevronPanels.png new file mode 100644 index 0000000000..4d1492148b Binary files /dev/null and b/Items/Placeables/DraedonStructures/HazardChevronPanels.png differ diff --git a/Items/Placeables/DraedonStructures/LaboratoryPanels.cs b/Items/Placeables/DraedonStructures/LaboratoryPanels.cs new file mode 100644 index 0000000000..cf90832ce3 --- /dev/null +++ b/Items/Placeables/DraedonStructures/LaboratoryPanels.cs @@ -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(); + } + + 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(), 2); + recipe.SetResult(this, 1); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/DraedonStructures/LaboratoryPanels.png b/Items/Placeables/DraedonStructures/LaboratoryPanels.png new file mode 100644 index 0000000000..a6e25fe5a4 Binary files /dev/null and b/Items/Placeables/DraedonStructures/LaboratoryPanels.png differ diff --git a/Items/Placeables/DraedonStructures/LaboratoryPipePlating.cs b/Items/Placeables/DraedonStructures/LaboratoryPipePlating.cs new file mode 100644 index 0000000000..9e5f49715c --- /dev/null +++ b/Items/Placeables/DraedonStructures/LaboratoryPipePlating.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 1); + recipe.AddIngredient(ModContent.ItemType(), 1); + recipe.SetResult(this, 2); + recipe.AddTile(TileID.Anvils); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/DraedonStructures/LaboratoryPipePlating.png b/Items/Placeables/DraedonStructures/LaboratoryPipePlating.png new file mode 100644 index 0000000000..eccf01140e Binary files /dev/null and b/Items/Placeables/DraedonStructures/LaboratoryPipePlating.png differ diff --git a/Items/Placeables/DraedonStructures/LaboratoryPlating.cs b/Items/Placeables/DraedonStructures/LaboratoryPlating.cs new file mode 100644 index 0000000000..8f977a068a --- /dev/null +++ b/Items/Placeables/DraedonStructures/LaboratoryPlating.cs @@ -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(); + } + + 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(), 1); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.Anvils); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/DraedonStructures/LaboratoryPlating.png b/Items/Placeables/DraedonStructures/LaboratoryPlating.png new file mode 100644 index 0000000000..128fb2992c Binary files /dev/null and b/Items/Placeables/DraedonStructures/LaboratoryPlating.png differ diff --git a/Items/Placeables/DraedonStructures/LaboratoryShelf.cs b/Items/Placeables/DraedonStructures/LaboratoryShelf.cs new file mode 100644 index 0000000000..d27a4cf6d9 --- /dev/null +++ b/Items/Placeables/DraedonStructures/LaboratoryShelf.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 1); + recipe.SetResult(this, 2); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 1); + recipe.SetResult(this, 1); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/DraedonStructures/LaboratoryShelf.png b/Items/Placeables/DraedonStructures/LaboratoryShelf.png new file mode 100644 index 0000000000..b1bdf5ff8c Binary files /dev/null and b/Items/Placeables/DraedonStructures/LaboratoryShelf.png differ diff --git a/Items/Placeables/DraedonStructures/RustedPipes.cs b/Items/Placeables/DraedonStructures/RustedPipes.cs new file mode 100644 index 0000000000..ffba168da7 --- /dev/null +++ b/Items/Placeables/DraedonStructures/RustedPipes.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.IronBar, 1); + recipe.SetResult(this, 5); + recipe.AddTile(TileID.Anvils); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/DraedonStructures/RustedPipes.png b/Items/Placeables/DraedonStructures/RustedPipes.png new file mode 100644 index 0000000000..52b0438930 Binary files /dev/null and b/Items/Placeables/DraedonStructures/RustedPipes.png differ diff --git a/Items/Placeables/DraedonStructures/RustedPlating.cs b/Items/Placeables/DraedonStructures/RustedPlating.cs new file mode 100644 index 0000000000..d4f1c0d2f7 --- /dev/null +++ b/Items/Placeables/DraedonStructures/RustedPlating.cs @@ -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(); + } + + 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(), 1); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.Anvils); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this, 1); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/DraedonStructures/RustedPlating.png b/Items/Placeables/DraedonStructures/RustedPlating.png new file mode 100644 index 0000000000..3494044dd4 Binary files /dev/null and b/Items/Placeables/DraedonStructures/RustedPlating.png differ diff --git a/Items/Placeables/DraedonStructures/RustedShelf.cs b/Items/Placeables/DraedonStructures/RustedShelf.cs new file mode 100644 index 0000000000..71249075f8 --- /dev/null +++ b/Items/Placeables/DraedonStructures/RustedShelf.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 1); + recipe.SetResult(this, 2); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 1); + recipe.SetResult(this, 1); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/DraedonStructures/RustedShelf.png b/Items/Placeables/DraedonStructures/RustedShelf.png new file mode 100644 index 0000000000..5cc79a7c6a Binary files /dev/null and b/Items/Placeables/DraedonStructures/RustedShelf.png differ diff --git a/Items/Placeables/Plates/Chaosplate.cs b/Items/Placeables/Plates/Chaosplate.cs new file mode 100644 index 0000000000..1ed58dbae8 --- /dev/null +++ b/Items/Placeables/Plates/Chaosplate.cs @@ -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(); + 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(), 1); + recipe.AddIngredient(ItemID.Obsidian, 3); + recipe.SetResult(this, 3); + recipe.AddTile(TileID.Hellforge); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Plates/Chaosplate.png b/Items/Placeables/Plates/Chaosplate.png new file mode 100644 index 0000000000..f8d5dbd14c Binary files /dev/null and b/Items/Placeables/Plates/Chaosplate.png differ diff --git a/Items/Placeables/Cinderplate.cs b/Items/Placeables/Plates/Cinderplate.cs similarity index 76% rename from Items/Placeables/Cinderplate.cs rename to Items/Placeables/Plates/Cinderplate.cs index 0f5ebf5a9f..b289aac06d 100644 --- a/Items/Placeables/Cinderplate.cs +++ b/Items/Placeables/Plates/Cinderplate.cs @@ -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(); + item.createTile = ModContent.TileType(); 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(), 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(), 4); recipe.SetResult(this); - recipe.AddTile(TileID.Anvils); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Plates/Cinderplate.png b/Items/Placeables/Plates/Cinderplate.png new file mode 100644 index 0000000000..f6fa62777b Binary files /dev/null and b/Items/Placeables/Plates/Cinderplate.png differ diff --git a/Items/Placeables/Plates/Elumplate.cs b/Items/Placeables/Plates/Elumplate.cs new file mode 100644 index 0000000000..878d78364c --- /dev/null +++ b/Items/Placeables/Plates/Elumplate.cs @@ -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(); + 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(), 1); + recipe.AddIngredient(ItemID.Obsidian, 3); + recipe.SetResult(this, 3); + recipe.AddTile(TileID.Hellforge); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Plates/Elumplate.png b/Items/Placeables/Plates/Elumplate.png new file mode 100644 index 0000000000..f4a86bca5d Binary files /dev/null and b/Items/Placeables/Plates/Elumplate.png differ diff --git a/Items/Placeables/Plates/Navyplate.cs b/Items/Placeables/Plates/Navyplate.cs new file mode 100644 index 0000000000..2879b31339 --- /dev/null +++ b/Items/Placeables/Plates/Navyplate.cs @@ -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(); + 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(), 1); + recipe.AddIngredient(ItemID.Obsidian, 3); + recipe.SetResult(this, 3); + recipe.AddTile(TileID.Hellforge); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Plates/Navyplate.png b/Items/Placeables/Plates/Navyplate.png new file mode 100644 index 0000000000..9bf9b977d0 Binary files /dev/null and b/Items/Placeables/Plates/Navyplate.png differ diff --git a/Items/Placeables/Plates/PlagueContainmentCells.cs b/Items/Placeables/Plates/PlagueContainmentCells.cs new file mode 100644 index 0000000000..c4b6ec1248 --- /dev/null +++ b/Items/Placeables/Plates/PlagueContainmentCells.cs @@ -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(); + 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(), 1); + recipe.AddIngredient(ItemID.Obsidian, 3); + recipe.SetResult(this, 3); + recipe.AddTile(TileID.Hellforge); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 4); + recipe.SetResult(this); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Plates/PlagueContainmentCells.png b/Items/Placeables/Plates/PlagueContainmentCells.png new file mode 100644 index 0000000000..8ca15bd563 Binary files /dev/null and b/Items/Placeables/Plates/PlagueContainmentCells.png differ diff --git a/Items/Placeables/Walls/ChaosplateWall.cs b/Items/Placeables/Walls/ChaosplateWall.cs new file mode 100644 index 0000000000..ca91319ed6 --- /dev/null +++ b/Items/Placeables/Walls/ChaosplateWall.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/ChaosplateWall.png b/Items/Placeables/Walls/ChaosplateWall.png new file mode 100644 index 0000000000..6a4f81b66f Binary files /dev/null and b/Items/Placeables/Walls/ChaosplateWall.png differ diff --git a/Items/Placeables/Walls/CinderplateWall.cs b/Items/Placeables/Walls/CinderplateWall.cs index 33781b2a04..6b9f5e0c53 100644 --- a/Items/Placeables/Walls/CinderplateWall.cs +++ b/Items/Placeables/Walls/CinderplateWall.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddTile(18); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/CinderplateWall.png b/Items/Placeables/Walls/CinderplateWall.png index 03b3da1392..d617ebfb80 100644 Binary files a/Items/Placeables/Walls/CinderplateWall.png and b/Items/Placeables/Walls/CinderplateWall.png differ diff --git a/Items/Placeables/Walls/DraedonStructures/HazardChevronWall.cs b/Items/Placeables/Walls/DraedonStructures/HazardChevronWall.cs new file mode 100644 index 0000000000..994bf1420d --- /dev/null +++ b/Items/Placeables/Walls/DraedonStructures/HazardChevronWall.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/DraedonStructures/HazardChevronWall.png b/Items/Placeables/Walls/DraedonStructures/HazardChevronWall.png new file mode 100644 index 0000000000..de85761283 Binary files /dev/null and b/Items/Placeables/Walls/DraedonStructures/HazardChevronWall.png differ diff --git a/Items/Placeables/Walls/DraedonStructures/LaboratoryPanelWall.cs b/Items/Placeables/Walls/DraedonStructures/LaboratoryPanelWall.cs new file mode 100644 index 0000000000..ba1bf5921a --- /dev/null +++ b/Items/Placeables/Walls/DraedonStructures/LaboratoryPanelWall.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/DraedonStructures/LaboratoryPanelWall.png b/Items/Placeables/Walls/DraedonStructures/LaboratoryPanelWall.png new file mode 100644 index 0000000000..da8a81fe73 Binary files /dev/null and b/Items/Placeables/Walls/DraedonStructures/LaboratoryPanelWall.png differ diff --git a/Items/Placeables/Walls/DraedonStructures/LaboratoryPlateBeam.cs b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlateBeam.cs new file mode 100644 index 0000000000..686097e58c --- /dev/null +++ b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlateBeam.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/DraedonStructures/LaboratoryPlateBeam.png b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlateBeam.png new file mode 100644 index 0000000000..559381b790 Binary files /dev/null and b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlateBeam.png differ diff --git a/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatePillar.cs b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatePillar.cs new file mode 100644 index 0000000000..1be0e218b0 --- /dev/null +++ b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatePillar.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatePillar.png b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatePillar.png new file mode 100644 index 0000000000..e08402e6c5 Binary files /dev/null and b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatePillar.png differ diff --git a/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatingWall.cs b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatingWall.cs new file mode 100644 index 0000000000..2620e6c96c --- /dev/null +++ b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatingWall.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatingWall.png b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatingWall.png new file mode 100644 index 0000000000..a34a2b4244 Binary files /dev/null and b/Items/Placeables/Walls/DraedonStructures/LaboratoryPlatingWall.png differ diff --git a/Items/Placeables/Walls/DraedonStructures/RustedPlateBeam.cs b/Items/Placeables/Walls/DraedonStructures/RustedPlateBeam.cs new file mode 100644 index 0000000000..4b0b765206 --- /dev/null +++ b/Items/Placeables/Walls/DraedonStructures/RustedPlateBeam.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/DraedonStructures/RustedPlateBeam.png b/Items/Placeables/Walls/DraedonStructures/RustedPlateBeam.png new file mode 100644 index 0000000000..0a7fdd7b66 Binary files /dev/null and b/Items/Placeables/Walls/DraedonStructures/RustedPlateBeam.png differ diff --git a/Items/Placeables/Walls/DraedonStructures/RustedPlatePillar.cs b/Items/Placeables/Walls/DraedonStructures/RustedPlatePillar.cs new file mode 100644 index 0000000000..97cdcb63af --- /dev/null +++ b/Items/Placeables/Walls/DraedonStructures/RustedPlatePillar.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/DraedonStructures/RustedPlatePillar.png b/Items/Placeables/Walls/DraedonStructures/RustedPlatePillar.png new file mode 100644 index 0000000000..298df3d848 Binary files /dev/null and b/Items/Placeables/Walls/DraedonStructures/RustedPlatePillar.png differ diff --git a/Items/Placeables/Walls/DraedonStructures/RustedPlatingWall.cs b/Items/Placeables/Walls/DraedonStructures/RustedPlatingWall.cs new file mode 100644 index 0000000000..16cb93a1c1 --- /dev/null +++ b/Items/Placeables/Walls/DraedonStructures/RustedPlatingWall.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/DraedonStructures/RustedPlatingWall.png b/Items/Placeables/Walls/DraedonStructures/RustedPlatingWall.png new file mode 100644 index 0000000000..17a1cf0ffd Binary files /dev/null and b/Items/Placeables/Walls/DraedonStructures/RustedPlatingWall.png differ diff --git a/Items/Placeables/Walls/ElumplateWall.cs b/Items/Placeables/Walls/ElumplateWall.cs new file mode 100644 index 0000000000..3b66790a96 --- /dev/null +++ b/Items/Placeables/Walls/ElumplateWall.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/ElumplateWall.png b/Items/Placeables/Walls/ElumplateWall.png new file mode 100644 index 0000000000..2fa9c6fb24 Binary files /dev/null and b/Items/Placeables/Walls/ElumplateWall.png differ diff --git a/Items/Placeables/Walls/NavyplateWall.cs b/Items/Placeables/Walls/NavyplateWall.cs new file mode 100644 index 0000000000..dae894decd --- /dev/null +++ b/Items/Placeables/Walls/NavyplateWall.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/NavyplateWall.png b/Items/Placeables/Walls/NavyplateWall.png new file mode 100644 index 0000000000..34ce61a063 Binary files /dev/null and b/Items/Placeables/Walls/NavyplateWall.png differ diff --git a/Items/Placeables/Walls/PlagueContainmentCellsWall.cs b/Items/Placeables/Walls/PlagueContainmentCellsWall.cs new file mode 100644 index 0000000000..19f4d29282 --- /dev/null +++ b/Items/Placeables/Walls/PlagueContainmentCellsWall.cs @@ -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(); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.SetResult(this, 4); + recipe.AddTile(TileID.WorkBenches); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Placeables/Walls/PlagueContainmentCellsWall.png b/Items/Placeables/Walls/PlagueContainmentCellsWall.png new file mode 100644 index 0000000000..3f9e074c76 Binary files /dev/null and b/Items/Placeables/Walls/PlagueContainmentCellsWall.png differ diff --git a/Tiles/Cinderplate.png b/Tiles/Cinderplate.png deleted file mode 100644 index 60f5cc7b5a..0000000000 Binary files a/Tiles/Cinderplate.png and /dev/null differ diff --git a/Tiles/CinderplateGlow.png b/Tiles/CinderplateGlow.png deleted file mode 100644 index dc283bcfb7..0000000000 Binary files a/Tiles/CinderplateGlow.png and /dev/null differ diff --git a/Tiles/DraedonStructures/HazardChevronPanels.cs b/Tiles/DraedonStructures/HazardChevronPanels.cs new file mode 100644 index 0000000000..5f95b7ac8c --- /dev/null +++ b/Tiles/DraedonStructures/HazardChevronPanels.cs @@ -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 (); + 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); + } + } +} diff --git a/Tiles/DraedonStructures/HazardChevronPanels.png b/Tiles/DraedonStructures/HazardChevronPanels.png new file mode 100644 index 0000000000..7598fa3acf Binary files /dev/null and b/Tiles/DraedonStructures/HazardChevronPanels.png differ diff --git a/Tiles/DraedonStructures/LaboratoryPanels.cs b/Tiles/DraedonStructures/LaboratoryPanels.cs new file mode 100644 index 0000000000..22297c8826 --- /dev/null +++ b/Tiles/DraedonStructures/LaboratoryPanels.cs @@ -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(); + AddMapEntry(new Color(36, 35, 37)); + } + } +} diff --git a/Tiles/DraedonStructures/LaboratoryPanels.png b/Tiles/DraedonStructures/LaboratoryPanels.png new file mode 100644 index 0000000000..b2bd3aed59 Binary files /dev/null and b/Tiles/DraedonStructures/LaboratoryPanels.png differ diff --git a/Tiles/DraedonStructures/LaboratoryPipePlating.cs b/Tiles/DraedonStructures/LaboratoryPipePlating.cs new file mode 100644 index 0000000000..f7423ffdec --- /dev/null +++ b/Tiles/DraedonStructures/LaboratoryPipePlating.cs @@ -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(); + 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()); + return false; + } + } +} diff --git a/Tiles/DraedonStructures/LaboratoryPipePlating.png b/Tiles/DraedonStructures/LaboratoryPipePlating.png new file mode 100644 index 0000000000..e08b08c66d Binary files /dev/null and b/Tiles/DraedonStructures/LaboratoryPipePlating.png differ diff --git a/Tiles/DraedonStructures/LaboratoryPlating.cs b/Tiles/DraedonStructures/LaboratoryPlating.cs new file mode 100644 index 0000000000..6a13105be9 --- /dev/null +++ b/Tiles/DraedonStructures/LaboratoryPlating.cs @@ -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 (); + 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); + } + } +} diff --git a/Tiles/DraedonStructures/LaboratoryPlating.png b/Tiles/DraedonStructures/LaboratoryPlating.png new file mode 100644 index 0000000000..78f8635bf0 Binary files /dev/null and b/Tiles/DraedonStructures/LaboratoryPlating.png differ diff --git a/Tiles/DraedonStructures/LaboratoryShelf.cs b/Tiles/DraedonStructures/LaboratoryShelf.cs new file mode 100644 index 0000000000..91623dd0e2 --- /dev/null +++ b/Tiles/DraedonStructures/LaboratoryShelf.cs @@ -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(); + disableSmartCursor = true; + adjTiles = new int[] { TileID.Platforms }; + } + + public override void PostSetDefaults() + { + Main.tileNoSunLight[Type] = false; + } + } +} diff --git a/Tiles/DraedonStructures/LaboratoryShelf.png b/Tiles/DraedonStructures/LaboratoryShelf.png new file mode 100644 index 0000000000..502930196a Binary files /dev/null and b/Tiles/DraedonStructures/LaboratoryShelf.png differ diff --git a/Tiles/DraedonStructures/RustedPipes.cs b/Tiles/DraedonStructures/RustedPipes.cs new file mode 100644 index 0000000000..d2eb2ebc8e --- /dev/null +++ b/Tiles/DraedonStructures/RustedPipes.cs @@ -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()] = true; + + soundType = SoundID.Item; + soundStyle = 52; + dustType = 32; + minPick = 30; + drop = ModContent.ItemType(); + 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); + } + } +} diff --git a/Tiles/DraedonStructures/RustedPipes.png b/Tiles/DraedonStructures/RustedPipes.png new file mode 100644 index 0000000000..0c2932e484 Binary files /dev/null and b/Tiles/DraedonStructures/RustedPipes.png differ diff --git a/Tiles/DraedonStructures/RustedPlating.cs b/Tiles/DraedonStructures/RustedPlating.cs new file mode 100644 index 0000000000..7c3f0d7770 --- /dev/null +++ b/Tiles/DraedonStructures/RustedPlating.cs @@ -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(); + 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); + } + } +} diff --git a/Tiles/DraedonStructures/RustedPlating.png b/Tiles/DraedonStructures/RustedPlating.png new file mode 100644 index 0000000000..585792143b Binary files /dev/null and b/Tiles/DraedonStructures/RustedPlating.png differ diff --git a/Tiles/DraedonStructures/RustedShelf.cs b/Tiles/DraedonStructures/RustedShelf.cs new file mode 100644 index 0000000000..a902efd115 --- /dev/null +++ b/Tiles/DraedonStructures/RustedShelf.cs @@ -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(); + disableSmartCursor = true; + adjTiles = new int[] { TileID.Platforms }; + } + + public override void PostSetDefaults() + { + Main.tileNoSunLight[Type] = false; + } + } +} diff --git a/Tiles/DraedonStructures/RustedShelf.png b/Tiles/DraedonStructures/RustedShelf.png new file mode 100644 index 0000000000..6ebc8cbe19 Binary files /dev/null and b/Tiles/DraedonStructures/RustedShelf.png differ diff --git a/Tiles/Cinderplate.cs b/Tiles/Plates/Chaosplate.cs similarity index 67% rename from Tiles/Cinderplate.cs rename to Tiles/Plates/Chaosplate.cs index d3d9126417..2e72391f1d 100644 --- a/Tiles/Cinderplate.cs +++ b/Tiles/Plates/Chaosplate.cs @@ -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(); - AddMapEntry(new Color(173, 52, 70)); + drop = ModContent.ItemType(); + 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) diff --git a/Tiles/Plates/Chaosplate.png b/Tiles/Plates/Chaosplate.png new file mode 100644 index 0000000000..aeb2fc91aa Binary files /dev/null and b/Tiles/Plates/Chaosplate.png differ diff --git a/Tiles/Plates/ChaosplateGlow.png b/Tiles/Plates/ChaosplateGlow.png new file mode 100644 index 0000000000..cccfe956a6 Binary files /dev/null and b/Tiles/Plates/ChaosplateGlow.png differ diff --git a/Tiles/Plates/ChaosplatePulse.png b/Tiles/Plates/ChaosplatePulse.png new file mode 100644 index 0000000000..2fb57b9051 Binary files /dev/null and b/Tiles/Plates/ChaosplatePulse.png differ diff --git a/Tiles/Plates/Cinderplate.cs b/Tiles/Plates/Cinderplate.cs new file mode 100644 index 0000000000..9929c9dda5 --- /dev/null +++ b/Tiles/Plates/Cinderplate.cs @@ -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(); + 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; + } + } +} diff --git a/Tiles/Plates/Cinderplate.png b/Tiles/Plates/Cinderplate.png new file mode 100644 index 0000000000..4b5b43fded Binary files /dev/null and b/Tiles/Plates/Cinderplate.png differ diff --git a/Tiles/Plates/CinderplateGlow.png b/Tiles/Plates/CinderplateGlow.png new file mode 100644 index 0000000000..bbaecf7f25 Binary files /dev/null and b/Tiles/Plates/CinderplateGlow.png differ diff --git a/Tiles/Plates/CinderplatePulse.png b/Tiles/Plates/CinderplatePulse.png new file mode 100644 index 0000000000..e4bcddc1d0 Binary files /dev/null and b/Tiles/Plates/CinderplatePulse.png differ diff --git a/Tiles/Plates/Elumplate.cs b/Tiles/Plates/Elumplate.cs new file mode 100644 index 0000000000..a9543aeee3 --- /dev/null +++ b/Tiles/Plates/Elumplate.cs @@ -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(); + 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; + } + } +} diff --git a/Tiles/Plates/Elumplate.png b/Tiles/Plates/Elumplate.png new file mode 100644 index 0000000000..10fd4a2629 Binary files /dev/null and b/Tiles/Plates/Elumplate.png differ diff --git a/Tiles/Plates/ElumplateGlow.png b/Tiles/Plates/ElumplateGlow.png new file mode 100644 index 0000000000..a66090b823 Binary files /dev/null and b/Tiles/Plates/ElumplateGlow.png differ diff --git a/Tiles/Plates/ElumplatePulse.png b/Tiles/Plates/ElumplatePulse.png new file mode 100644 index 0000000000..8ad87197d6 Binary files /dev/null and b/Tiles/Plates/ElumplatePulse.png differ diff --git a/Tiles/Plates/Navyplate.cs b/Tiles/Plates/Navyplate.cs new file mode 100644 index 0000000000..22d78b4f28 --- /dev/null +++ b/Tiles/Plates/Navyplate.cs @@ -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(); + 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; + } + } +} diff --git a/Tiles/Plates/Navyplate.png b/Tiles/Plates/Navyplate.png new file mode 100644 index 0000000000..f0e2e5bdc7 Binary files /dev/null and b/Tiles/Plates/Navyplate.png differ diff --git a/Tiles/Plates/NavyplateGlow.png b/Tiles/Plates/NavyplateGlow.png new file mode 100644 index 0000000000..e00fb661fd Binary files /dev/null and b/Tiles/Plates/NavyplateGlow.png differ diff --git a/Tiles/Plates/NavyplatePulse.png b/Tiles/Plates/NavyplatePulse.png new file mode 100644 index 0000000000..3d6fb772f1 Binary files /dev/null and b/Tiles/Plates/NavyplatePulse.png differ diff --git a/Tiles/Plates/PlagueContainmentCells.cs b/Tiles/Plates/PlagueContainmentCells.cs new file mode 100644 index 0000000000..29dfb1d420 --- /dev/null +++ b/Tiles/Plates/PlagueContainmentCells.cs @@ -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(); + 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; + } + } +} diff --git a/Tiles/Plates/PlagueContainmentCells.png b/Tiles/Plates/PlagueContainmentCells.png new file mode 100644 index 0000000000..8e263be09a Binary files /dev/null and b/Tiles/Plates/PlagueContainmentCells.png differ diff --git a/Tiles/Plates/PlagueContainmentCellsGlow.png b/Tiles/Plates/PlagueContainmentCellsGlow.png new file mode 100644 index 0000000000..32cb9f8aed Binary files /dev/null and b/Tiles/Plates/PlagueContainmentCellsGlow.png differ diff --git a/Tiles/Plates/PlagueContainmentCellsPulse.png b/Tiles/Plates/PlagueContainmentCellsPulse.png new file mode 100644 index 0000000000..4b36b473c6 Binary files /dev/null and b/Tiles/Plates/PlagueContainmentCellsPulse.png differ diff --git a/Walls/ChaosplateWall.cs b/Walls/ChaosplateWall.cs new file mode 100644 index 0000000000..01256427b8 --- /dev/null +++ b/Walls/ChaosplateWall.cs @@ -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(); + 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; + } + } +} diff --git a/Walls/ChaosplateWall.png b/Walls/ChaosplateWall.png new file mode 100644 index 0000000000..5a64d2349e Binary files /dev/null and b/Walls/ChaosplateWall.png differ diff --git a/Walls/CinderplateWall.cs b/Walls/CinderplateWall.cs index 2450e1b777..e5bf705a91 100644 --- a/Walls/CinderplateWall.cs +++ b/Walls/CinderplateWall.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Walls Main.wallHouse[Type] = true; drop = ModContent.ItemType(); - AddMapEntry(new Color(97, 22, 57)); + AddMapEntry(new Color(166, 111, 75)); } public override bool CreateDust(int i, int j, ref int type) diff --git a/Walls/CinderplateWall.png b/Walls/CinderplateWall.png index 8b1513dfdf..4d640f83a9 100644 Binary files a/Walls/CinderplateWall.png and b/Walls/CinderplateWall.png differ diff --git a/Walls/DraedonStructures/HazardChevronWall.cs b/Walls/DraedonStructures/HazardChevronWall.cs new file mode 100644 index 0000000000..f107686fde --- /dev/null +++ b/Walls/DraedonStructures/HazardChevronWall.cs @@ -0,0 +1,24 @@ +using Terraria; +using Microsoft.Xna.Framework; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Walls.DraedonStructures +{ + public class HazardChevronWall : ModWall + { + + public override void SetDefaults() + { + dustType = 19; + drop = ModContent.ItemType(); + Main.wallHouse[Type] = true; + + AddMapEntry(new Color(114, 105, 51)); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Walls/DraedonStructures/HazardChevronWall.png b/Walls/DraedonStructures/HazardChevronWall.png new file mode 100644 index 0000000000..8390af753b Binary files /dev/null and b/Walls/DraedonStructures/HazardChevronWall.png differ diff --git a/Walls/DraedonStructures/LaboratoryPanelWall.cs b/Walls/DraedonStructures/LaboratoryPanelWall.cs new file mode 100644 index 0000000000..a1b019db18 --- /dev/null +++ b/Walls/DraedonStructures/LaboratoryPanelWall.cs @@ -0,0 +1,24 @@ +using Terraria; +using Microsoft.Xna.Framework; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Walls.DraedonStructures +{ + public class LaboratoryPanelWall : ModWall + { + + public override void SetDefaults() + { + dustType = 1; + drop = ModContent.ItemType(); + Main.wallHouse[Type] = true; + + AddMapEntry(new Color(63, 57, 56)); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Walls/DraedonStructures/LaboratoryPanelWall.png b/Walls/DraedonStructures/LaboratoryPanelWall.png new file mode 100644 index 0000000000..397bc23519 Binary files /dev/null and b/Walls/DraedonStructures/LaboratoryPanelWall.png differ diff --git a/Walls/DraedonStructures/LaboratoryPlateBeam.cs b/Walls/DraedonStructures/LaboratoryPlateBeam.cs new file mode 100644 index 0000000000..a3202c1c02 --- /dev/null +++ b/Walls/DraedonStructures/LaboratoryPlateBeam.cs @@ -0,0 +1,24 @@ +using Terraria; +using Microsoft.Xna.Framework; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Walls.DraedonStructures +{ + public class LaboratoryPlateBeam : ModWall + { + + public override void SetDefaults() + { + dustType = 109; + drop = ModContent.ItemType(); + Main.wallHouse[Type] = true; + + AddMapEntry(new Color(48, 45, 46)); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Walls/DraedonStructures/LaboratoryPlateBeam.png b/Walls/DraedonStructures/LaboratoryPlateBeam.png new file mode 100644 index 0000000000..4043fd1702 Binary files /dev/null and b/Walls/DraedonStructures/LaboratoryPlateBeam.png differ diff --git a/Walls/DraedonStructures/LaboratoryPlatePillar.cs b/Walls/DraedonStructures/LaboratoryPlatePillar.cs new file mode 100644 index 0000000000..a9d122697f --- /dev/null +++ b/Walls/DraedonStructures/LaboratoryPlatePillar.cs @@ -0,0 +1,24 @@ +using Terraria; +using Microsoft.Xna.Framework; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Walls.DraedonStructures +{ + public class LaboratoryPlatePillar : ModWall + { + + public override void SetDefaults() + { + dustType = 109; + drop = ModContent.ItemType(); + Main.wallHouse[Type] = true; + + AddMapEntry(new Color(29, 28, 30)); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Walls/DraedonStructures/LaboratoryPlatePillar.png b/Walls/DraedonStructures/LaboratoryPlatePillar.png new file mode 100644 index 0000000000..ccd307c395 Binary files /dev/null and b/Walls/DraedonStructures/LaboratoryPlatePillar.png differ diff --git a/Walls/DraedonStructures/LaboratoryPlatingWall.cs b/Walls/DraedonStructures/LaboratoryPlatingWall.cs new file mode 100644 index 0000000000..0605bf4197 --- /dev/null +++ b/Walls/DraedonStructures/LaboratoryPlatingWall.cs @@ -0,0 +1,24 @@ +using Terraria; +using Microsoft.Xna.Framework; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Walls.DraedonStructures +{ + public class LaboratoryPlatingWall : ModWall + { + + public override void SetDefaults() + { + dustType = 30; + drop = ModContent.ItemType(); + Main.wallHouse[Type] = true; + + AddMapEntry(new Color(105, 102, 98)); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Walls/DraedonStructures/LaboratoryPlatingWall.png b/Walls/DraedonStructures/LaboratoryPlatingWall.png new file mode 100644 index 0000000000..78a153cc54 Binary files /dev/null and b/Walls/DraedonStructures/LaboratoryPlatingWall.png differ diff --git a/Walls/DraedonStructures/RustedPlateBeam.cs b/Walls/DraedonStructures/RustedPlateBeam.cs new file mode 100644 index 0000000000..4dc8f86a73 --- /dev/null +++ b/Walls/DraedonStructures/RustedPlateBeam.cs @@ -0,0 +1,24 @@ +using Terraria; +using Microsoft.Xna.Framework; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Walls.DraedonStructures +{ + public class RustedPlateBeam : ModWall + { + + public override void SetDefaults() + { + dustType = 32; + drop = ModContent.ItemType(); + Main.wallHouse[Type] = true; + + AddMapEntry(new Color(74, 47, 39)); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Walls/DraedonStructures/RustedPlateBeam.png b/Walls/DraedonStructures/RustedPlateBeam.png new file mode 100644 index 0000000000..a74b4151ce Binary files /dev/null and b/Walls/DraedonStructures/RustedPlateBeam.png differ diff --git a/Walls/DraedonStructures/RustedPlatePillar.cs b/Walls/DraedonStructures/RustedPlatePillar.cs new file mode 100644 index 0000000000..4d2e22a510 --- /dev/null +++ b/Walls/DraedonStructures/RustedPlatePillar.cs @@ -0,0 +1,24 @@ +using Terraria; +using Microsoft.Xna.Framework; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Walls.DraedonStructures +{ + public class RustedPlatePillar : ModWall + { + + public override void SetDefaults() + { + dustType = 32; + drop = ModContent.ItemType(); + Main.wallHouse[Type] = true; + + AddMapEntry(new Color(99, 71, 60)); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Walls/DraedonStructures/RustedPlatePillar.png b/Walls/DraedonStructures/RustedPlatePillar.png new file mode 100644 index 0000000000..aa071e9121 Binary files /dev/null and b/Walls/DraedonStructures/RustedPlatePillar.png differ diff --git a/Walls/DraedonStructures/RustedPlatingWall.cs b/Walls/DraedonStructures/RustedPlatingWall.cs new file mode 100644 index 0000000000..47dced52ef --- /dev/null +++ b/Walls/DraedonStructures/RustedPlatingWall.cs @@ -0,0 +1,24 @@ +using Terraria; +using Microsoft.Xna.Framework; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Walls.DraedonStructures +{ + public class RustedPlatingWall : ModWall + { + + public override void SetDefaults() + { + dustType = 32; + drop = ModContent.ItemType(); + Main.wallHouse[Type] = true; + + AddMapEntry(new Color(83, 59, 50)); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Walls/DraedonStructures/RustedPlatingWall.png b/Walls/DraedonStructures/RustedPlatingWall.png new file mode 100644 index 0000000000..304d059b83 Binary files /dev/null and b/Walls/DraedonStructures/RustedPlatingWall.png differ diff --git a/Walls/ElumplateWall.cs b/Walls/ElumplateWall.cs new file mode 100644 index 0000000000..5735096903 --- /dev/null +++ b/Walls/ElumplateWall.cs @@ -0,0 +1,29 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Walls +{ + public class ElumplateWall : ModWall + { + public override void SetDefaults() + { + Main.wallHouse[Type] = true; + + drop = ModContent.ItemType(); + AddMapEntry(new Color(79, 117, 138)); + } + + 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; + } + } +} diff --git a/Walls/ElumplateWall.png b/Walls/ElumplateWall.png new file mode 100644 index 0000000000..2a205962de Binary files /dev/null and b/Walls/ElumplateWall.png differ diff --git a/Walls/NavyplateWall.cs b/Walls/NavyplateWall.cs new file mode 100644 index 0000000000..8ec9925d68 --- /dev/null +++ b/Walls/NavyplateWall.cs @@ -0,0 +1,29 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Walls +{ + public class NavyplateWall : ModWall + { + public override void SetDefaults() + { + Main.wallHouse[Type] = true; + + drop = ModContent.ItemType(); + AddMapEntry(new Color(55, 98, 127)); + } + + 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; + } + } +} diff --git a/Walls/NavyplateWall.png b/Walls/NavyplateWall.png new file mode 100644 index 0000000000..5b15b3335f Binary files /dev/null and b/Walls/NavyplateWall.png differ diff --git a/Walls/PlagueContainmentCellsWall.cs b/Walls/PlagueContainmentCellsWall.cs new file mode 100644 index 0000000000..898c53b100 --- /dev/null +++ b/Walls/PlagueContainmentCellsWall.cs @@ -0,0 +1,29 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Walls +{ + public class PlagueContainmentCellsWall : ModWall + { + public override void SetDefaults() + { + Main.wallHouse[Type] = true; + + drop = ModContent.ItemType(); + AddMapEntry(new Color(83, 122, 44)); + } + + 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; + } + } +} diff --git a/Walls/PlagueContainmentCellsWall.png b/Walls/PlagueContainmentCellsWall.png new file mode 100644 index 0000000000..e97e464971 Binary files /dev/null and b/Walls/PlagueContainmentCellsWall.png differ