So I heard you like walls

So I added a lot of walls and a few more wulfrum tiles

Anodized Wulfrum Trim
Rounded Anodized Wulfrum Panel
Anodized Wulfrum Platform

More is still coming still got some walls to do a gear tile, and one more panel tile that just needs to be sheeted, we are cooking my friends
This commit is contained in:
Heart-Plus-Up committed 2025-04-05 15:23:18 -07:00
1 parent bbb871be13
commit f5b4f379b6
27 files changed
+388 -3

No files matched your search

@@ -0,0 +1,32 @@
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.FurnitureWulfrum;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.FurnitureWulfrum
{
public class AnodizedWulfrumPlatform : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 200;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.AnodizedWulfrumPlatform>());
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Placeables/FurnitureWulfrum/AnodizedWulfrumPlatform_Glow").Value);
}
public override void AddRecipes()
{
CreateRecipe(2).
AddIngredient<AnodizedWulfrumMetal>().
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

@@ -0,0 +1,32 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Walls;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.FurnitureWulfrum
{
public class AnodizedWulfrumTrim : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.AnodizedWulfrumTrim>());
public override void AddRecipes()
{
CreateRecipe(25).
AddRecipeGroup("AnyStoneBlock", 25).
AddIngredient<AnodizedWulfrumMetal>().
AddTile(TileID.HeavyWorkBench).
Register();
//CreateRecipe().
// AddIngredient<WulfrumPlatingWall>(4).
// AddTile(TileID.WorkBenches).
// DisableDecraft().
// Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

@@ -0,0 +1,33 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Walls;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.FurnitureWulfrum
{
public class RoundedAnodizedWulfrumPanels : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.RoundedAnodizedWulfrumPanels>());
public override void AddRecipes()
{
CreateRecipe(25).
AddRecipeGroup("AnyStoneBlock", 25).
AddIngredient<AnodizedWulfrumMetal>().
AddIngredient<WulfrumMetalScrap>().
AddTile(TileID.HeavyWorkBench).
Register();
//CreateRecipe().
// AddIngredient<WulfrumPlatingWall>(4).
// AddTile(TileID.WorkBenches).
// DisableDecraft().
// Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

@@ -0,0 +1,27 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.FurnitureWulfrum;
using Terraria.ID;
using Terraria.ModLoader;
using WallTiles = CalamityMod.Walls;
namespace CalamityMod.Items.Placeables.Walls
{
public class AnodizedWulfrumTrimWall : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 400;
}
public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType<WallTiles.AnodizedWulfrumTrimWall>());
public override void AddRecipes()
{
CreateRecipe(8).
AddIngredient<AnodizedWulfrumMetal>().
AddTile(TileID.WorkBenches).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

@@ -0,0 +1,28 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.FurnitureWulfrum;
using Terraria.ID;
using Terraria.ModLoader;
using WallTiles = CalamityMod.Walls;
namespace CalamityMod.Items.Placeables.Walls
{
public class RoundedAnodizedWulfrumPanelWall : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 400;
}
public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType<WallTiles.RoundedAnodizedWulfrumPanelWall>());
public override void AddRecipes()
{
CreateRecipe(8).
AddIngredient<WulfrumMetalScrap>().
AddIngredient<AnodizedWulfrumMetal>().
AddTile(TileID.WorkBenches).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

@@ -19,9 +19,9 @@ namespace CalamityMod.Items.Placeables.Walls
public override void AddRecipes()
{
CreateRecipe(8).
AddIngredient<AnodizedWulfrumMetal>().
AddIngredient<WulfrumMetalScrap>().
AddIngredient<AnodizedWulfrumMetal>().
AddIngredient<EnergyCore>().
AddTile(TileID.WorkBenches).
Register();
}
@@ -0,0 +1,68 @@
using CalamityMod.Items.Placeables.FurnitureWulfrum;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Tiles.FurnitureWulfrum
{
public class AnodizedWulfrumPlatform : ModTile
{
internal static Texture2D GlowTexture;
public override void SetStaticDefaults()
{
if (!Main.dedServ)
{
GlowTexture = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureWulfrum/AnodizedWulfrumPlatform_Glow", AssetRequestMode.ImmediateLoad).Value;
}
this.SetUpPlatform(ModContent.ItemType<Items.Placeables.FurnitureWulfrum.AnodizedWulfrumPlatform>(), true);
}
public override bool CanExplode(int i, int j) => false;
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
return false;
}
public override void PostSetDefaults()
{
Main.tileNoSunLight[Type] = false;
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
{
// If the cached textures don't exist for some reason, don't bother using them.
if (GlowTexture is null)
return;
Tile tile = CalamityUtils.ParanoidTileRetrieval(i, j);
if (tile.IsTileActuallyInvisible())
return;
int xPos = tile.TileFrameX;
int frameOffset = (i + j) % 6 * AnimationFrameHeight;
int yPos = tile.TileFrameY + frameOffset;
Vector2 drawOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffset;
if (!tile.IsHalfBlock)
{
spriteBatch.Draw(GlowTexture, drawPosition, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
}
else if (tile.IsHalfBlock)
{
spriteBatch.Draw(GlowTexture, drawPosition + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

@@ -0,0 +1,52 @@
using CalamityMod.Dusts;
using CalamityMod.Systems;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Tiles.FurnitureWulfrum
{
public class AnodizedWulfrumTrim : ModTile
{
public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3);
private const short subsheetWidth = 216;
private const short subsheetHeight = 72;
public static int TypeCache;
public override void SetStaticDefaults()
{
TypeCache = Type;
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
Main.tileShine2[Type] = true;
CalamityUtils.MergeWithGeneral(Type);
CalamityUtils.MergeDecorativeTiles(Type);
HitSound = MinePlatingSound;
AddMapEntry(new Color(133, 13, 13));
}
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
return false;
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
{
TileFramingSystem.CompactFraming(i, j, resetFrame);
return false;
}
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
{
int xPos = i % 2;
int yPos = j % 2;
frameXOffset = xPos * subsheetWidth;
frameYOffset = yPos * subsheetHeight;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

@@ -0,0 +1,52 @@
using CalamityMod.Dusts;
using CalamityMod.Systems;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Tiles.FurnitureWulfrum
{
public class RoundedAnodizedWulfrumPanels : ModTile
{
public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3);
private const short subsheetWidth = 216;
private const short subsheetHeight = 72;
public static int TypeCache;
public override void SetStaticDefaults()
{
TypeCache = Type;
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
Main.tileShine2[Type] = true;
CalamityUtils.MergeWithGeneral(Type);
CalamityUtils.MergeDecorativeTiles(Type);
HitSound = MinePlatingSound;
AddMapEntry(new Color(164, 150, 125));
}
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
return false;
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
{
TileFramingSystem.CompactFraming(i, j, resetFrame);
return false;
}
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
{
int xPos = i % 2;
int yPos = j % 2;
frameXOffset = xPos * subsheetWidth;
frameYOffset = yPos * subsheetHeight;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum
CalamityUtils.MergeWithGeneral(Type);
HitSound = MinePlatingSound;
AddMapEntry(new Color(164, 150, 125));
AddMapEntry(new Color(109, 132, 101));
}
public override bool CreateDust(int i, int j, ref int type)
+1
View File
@@ -19,6 +19,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum
Main.tileBlockLight[Type] = true;
CalamityUtils.MergeWithGeneral(Type);
CalamityUtils.MergeDecorativeTiles(Type);
HitSound = MinePlatingSound;
AddMapEntry(new Color(164, 150, 125));
+2
View File
@@ -651,6 +651,8 @@ namespace CalamityMod
SetMerge(type, TileType<WulfrumSiding>());
SetMerge(type, TileType<WulfrumPlating>());
SetMerge(type, TileType<WulfrumEnergyBarrier>());
SetMerge(type, TileType<RoundedAnodizedWulfrumPanels>());
SetMerge(type, TileType<AnodizedWulfrumTrim>());
}
/// <summary>
+29
View File
@@ -0,0 +1,29 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
namespace CalamityMod.Walls
{
public class AnodizedWulfrumTrimWall : MultiVariantModWall
{
public override void SetStaticDefaults()
{
Main.wallHouse[Type] = true;
AddMapEntry(new Color(67, 6, 6));
}
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
return false;
}
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
public override void PopulateWallVariant(int i, int j, ref int frameXOffset, ref int frameYOffset)
{
frameXOffset = (i % 2) * 468;
frameYOffset = (j % 2) * 180;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

+29
View File
@@ -0,0 +1,29 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
namespace CalamityMod.Walls
{
public class RoundedAnodizedWulfrumPanelWall : MultiVariantModWall
{
public override void SetStaticDefaults()
{
Main.wallHouse[Type] = true;
AddMapEntry(new Color(98, 90, 75));
}
public override bool CreateDust(int i, int j, ref int type)
{
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
return false;
}
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
public override void PopulateWallVariant(int i, int j, ref int frameXOffset, ref int frameYOffset)
{
frameXOffset = (i % 2) * 468;
frameYOffset = (j % 2) * 180;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Walls
Main.wallHouse[Type] = true;
Main.wallLight[Type] = true;
AddMapEntry(new Color(116, 153, 40));
AddMapEntry(new Color(28, 28, 29));
}
public override void Unload()