diff --git a/Items/Placeables/ChaoticBrick.png b/Items/Placeables/ChaoticBrick.png deleted file mode 100644 index 9067fa1f57..0000000000 Binary files a/Items/Placeables/ChaoticBrick.png and /dev/null differ diff --git a/Items/Placeables/ChaoticBrick.cs b/Items/Placeables/ScoriaBrick.cs similarity index 84% rename from Items/Placeables/ChaoticBrick.cs rename to Items/Placeables/ScoriaBrick.cs index 0bd9b0408d..8e0a87fb51 100644 --- a/Items/Placeables/ChaoticBrick.cs +++ b/Items/Placeables/ScoriaBrick.cs @@ -4,7 +4,8 @@ using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables { - public class ChaoticBrick : ModItem + [LegacyName("ChaoticBrick")] + public class ScoriaBrick : ModItem { public override void SetStaticDefaults() => SacrificeTotal = 100; @@ -21,7 +22,7 @@ namespace CalamityMod.Items.Placeables Item.useTime = 10; Item.useStyle = ItemUseStyleID.Swing; Item.consumable = true; - Item.createTile = ModContent.TileType(); + Item.createTile = ModContent.TileType(); } public override void AddRecipes() @@ -33,7 +34,7 @@ namespace CalamityMod.Items.Placeables Register(); CreateRecipe(). - AddIngredient(4). + AddIngredient(4). AddTile(TileID.WorkBenches). Register(); } diff --git a/Items/Placeables/ScoriaBrick.png b/Items/Placeables/ScoriaBrick.png new file mode 100644 index 0000000000..456d85d88c Binary files /dev/null and b/Items/Placeables/ScoriaBrick.png differ diff --git a/Items/Placeables/Walls/ChaoticBrickWall.cs b/Items/Placeables/Walls/ScoriaBrickWall.cs similarity index 67% rename from Items/Placeables/Walls/ChaoticBrickWall.cs rename to Items/Placeables/Walls/ScoriaBrickWall.cs index 3410d503b2..c45a29dc77 100644 --- a/Items/Placeables/Walls/ChaoticBrickWall.cs +++ b/Items/Placeables/Walls/ScoriaBrickWall.cs @@ -4,12 +4,13 @@ using Terraria.ID; namespace CalamityMod.Items.Placeables.Walls { - public class ChaoticBrickWall : ModItem + [LegacyName("ChaoticBrickWall")] + public class ScoriaBrickWall : ModItem { public override void SetStaticDefaults() { SacrificeTotal = 400; - DisplayName.SetDefault("Chaotic Brick Wall"); + DisplayName.SetDefault("Scoria Brick Wall"); } public override void SetDefaults() { @@ -22,12 +23,12 @@ namespace CalamityMod.Items.Placeables.Walls Item.useTime = 7; Item.useStyle = ItemUseStyleID.Swing; Item.consumable = true; - Item.createWall = ModContent.WallType(); + Item.createWall = ModContent.WallType(); } public override void AddRecipes() { - CreateRecipe(4).AddIngredient(ModContent.ItemType(), 1).AddTile(TileID.WorkBenches).Register(); + CreateRecipe(4).AddIngredient(ModContent.ItemType(), 1).AddTile(TileID.WorkBenches).Register(); } } } diff --git a/Items/Placeables/Walls/ChaoticBrickWall.png b/Items/Placeables/Walls/ScoriaBrickWall.png similarity index 100% rename from Items/Placeables/Walls/ChaoticBrickWall.png rename to Items/Placeables/Walls/ScoriaBrickWall.png diff --git a/Tiles/ChaoticBrick.cs b/Tiles/ChaoticBrick.cs deleted file mode 100644 index 09d03c1638..0000000000 --- a/Tiles/ChaoticBrick.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ModLoader; -using Terraria.ID; - -namespace CalamityMod.Tiles -{ - public class ChaoticBrick : ModTile - { - public override void SetStaticDefaults() - { - Main.tileLighted[Type] = true; - Main.tileSolid[Type] = true; - Main.tileBlockLight[Type] = true; - DustType = 105; - ItemDrop = ModContent.ItemType(); - AddMapEntry(new Color(255, 0, 0)); - HitSound = SoundID.Tink; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - - public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) - { - r = 0.04f; - g = 0.00f; - b = 0.00f; - } - } -} diff --git a/Tiles/ChaoticBrick.png b/Tiles/ChaoticBrick.png deleted file mode 100644 index 5affdec8d0..0000000000 Binary files a/Tiles/ChaoticBrick.png and /dev/null differ diff --git a/Tiles/ScoriaBrick.cs b/Tiles/ScoriaBrick.cs new file mode 100644 index 0000000000..d9e86aca98 --- /dev/null +++ b/Tiles/ScoriaBrick.cs @@ -0,0 +1,52 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.GameContent.Metadata; +using Terraria.ModLoader; +using Terraria.ID; + +namespace CalamityMod.Tiles +{ + [LegacyName("ChaoticBrick")] + public class ScoriaBrick : ModTile + { + int subsheetHeight = 72; + int subsheetWidth = 216; + public override void SetStaticDefaults() + { + Main.tileLighted[Type] = true; + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = true; + DustType = 105; + ItemDrop = ModContent.ItemType(); + AddMapEntry(new Color(255, 0, 0)); + HitSound = SoundID.Tink; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + r = 0.04f; + g = 0.00f; + b = 0.00f; + } + + public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset) + { + int xPos = i % 1; + int yPos = j % 2; + + frameXOffset = xPos * subsheetWidth; + frameYOffset = yPos * subsheetHeight; + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + TileFraming.CompactFraming(i, j, resetFrame); + return false; + } + } +} diff --git a/Tiles/ScoriaBrick.png b/Tiles/ScoriaBrick.png new file mode 100644 index 0000000000..d1c449da8e Binary files /dev/null and b/Tiles/ScoriaBrick.png differ diff --git a/Walls/ChaoticBrickWall.png b/Walls/ChaoticBrickWall.png deleted file mode 100644 index 778942e540..0000000000 Binary files a/Walls/ChaoticBrickWall.png and /dev/null differ diff --git a/Walls/ChaoticBrickWall.cs b/Walls/ScoriaBrickWall.cs similarity index 82% rename from Walls/ChaoticBrickWall.cs rename to Walls/ScoriaBrickWall.cs index 5c2b662020..b5bb16b8c4 100644 --- a/Walls/ChaoticBrickWall.cs +++ b/Walls/ScoriaBrickWall.cs @@ -4,12 +4,13 @@ using Terraria.ModLoader; namespace CalamityMod.Walls { - public class ChaoticBrickWall : ModWall + [LegacyName("ChaoticBrickWall")] + public class ScoriaBrickWall : ModWall { public override void SetStaticDefaults() { Main.wallHouse[Type] = true; - ItemDrop = ModContent.ItemType(); + ItemDrop = ModContent.ItemType(); AddMapEntry(new Color(255, 0, 0)); DustType = 105; } diff --git a/Walls/ScoriaBrickWall.png b/Walls/ScoriaBrickWall.png new file mode 100644 index 0000000000..17b3942ad3 Binary files /dev/null and b/Walls/ScoriaBrickWall.png differ