Tile color adjustments and some tiles

This commit is contained in:
Heart-Plus-Up committed 2025-07-31 06:57:24 -07:00
1 parent 2adc6f4d07
commit 0b21c38bf8
19 files changed
+268 -3

No files matched your search

@@ -0,0 +1,30 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Walls;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.FurnitureRunestone
{
public class RunestoneTerracotta : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 200;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureRunestone.RunestoneTerracotta>());
//public override void AddRecipes()
//{
// CreateRecipe().
// AddIngredient<RunestoneWall>(4).
// AddTile(TileID.WorkBenches).
// DisableDecraft().
// Register();
//}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 200 B

@@ -0,0 +1,30 @@
using CalamityMod.Items.Placeables.Walls;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items.Placeables.SunkenSea;
namespace CalamityMod.Items.Placeables.FurnitureShellstone
{
public class ShellTrimBrick : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureShellstone.ShellTrimBrick>());
//public override void AddRecipes()
//{
// CreateRecipe().
// AddIngredient<Shellstone>().
// AddTile(TileID.HeavyWorkBench).
// Register();
// CreateRecipe().
// AddIngredient<ShellstoneSlabWall>(4).
// AddTile(TileID.WorkBenches).
// DisableDecraft().
// Register();
//}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 290 B

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

After

Width:  |  Height:  |  Size: 421 B

@@ -4628,3 +4628,18 @@ AridSoil: {
DisplayName: Arid Soil
Tooltip: ""
}
RunestoneTerracotta: {
DisplayName: Runestone Terracotta
Tooltip: ""
}
ShellTrimBrick: {
DisplayName: Shell Trim Brick
Tooltip: ""
}
ShellTrimBrickWall: {
DisplayName: Shell Trim Brick Wall
Tooltip: ""
}
@@ -0,0 +1,44 @@
using CalamityMod.Systems;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Tiles.SunkenSea;
namespace CalamityMod.Tiles.FurnitureRunestone
{
public class RunestoneTerracotta : ModTile
{
public override void SetStaticDefaults()
{
TileID.Sets.GeneralPlacementTiles[Type] = false;
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
CalamityUtils.MergeWithGeneral(Type);
TileID.Sets.HasSlopeFrames[Type] = true;
TileID.Sets.ChecksForMerge[Type] = true;
HitSound = SoundID.Tink;
DustType = DustID.Pot;
AddMapEntry(new Color(186, 130, 130));
Main.tileShine2[Type] = true;
TileID.Sets.CanBeDugByShovel[Type] = true;
this.RegisterUniversalMerge(ModContent.TileType<Shellstone>(), "CalamityMod/Tiles/Merges/ShellstoneMerge");
this.RegisterUniversalMerge(TileID.Sandstone, "CalamityMod/Tiles/Merges/SandstoneMerge");
this.RegisterUniversalMerge(TileID.Sand, "CalamityMod/Tiles/Merges/SandMerge");
this.RegisterUniversalMerge(TileID.HardenedSand, "CalamityMod/Tiles/Merges/HardenedSandMerge");
this.RegisterUniversalMerge(ModContent.TileType<EutrophicSand>(), "CalamityMod/Tiles/Merges/EutrophicSandMerge");
this.RegisterUniversalMerge(ModContent.TileType<Navystone>(), "CalamityMod/Tiles/Merges/NavystoneMerge");
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
{
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
}
}
}
@@ -0,0 +1,34 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Systems;
using CalamityMod.Tiles.SunkenSea;
namespace CalamityMod.Tiles.FurnitureShellstone
{
public class ShellTrimBrick : ModTile
{
public override void SetStaticDefaults()
{
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
CalamityUtils.MergeWithGeneral(Type);
TileID.Sets.HasSlopeFrames[Type] = true;
HitSound = SoundID.Tink;
DustType = DustID.CorruptPlants;
AddMapEntry(new Color(156, 191, 199));
this.RegisterUniversalMerge(ModContent.TileType<Navystone>(), "CalamityMod/Tiles/Merges/NavystoneMerge");
this.RegisterUniversalMerge(ModContent.TileType<EutrophicSand>(), "CalamityMod/Tiles/Merges/EutrophicSandMerge");
this.RegisterUniversalMerge(ModContent.TileType<Runestone>(), "CalamityMod/Tiles/Merges/RunestoneMerge");
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
{
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.SunkenSea
Main.tileShine2[Type] = true;
DustType = DustID.Hive;
AddMapEntry(new Color(210, 124, 45));
AddMapEntry(new Color(206, 124, 97));
this.RegisterUniversalMerge(TileID.Sandstone, "CalamityMod/Tiles/Merges/SandstoneMerge");
this.RegisterUniversalMerge(TileID.Sand, "CalamityMod/Tiles/Merges/SandMerge");
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.SunkenSea
TileID.Sets.ChecksForMerge[Type] = true;
HitSound = SoundID.Tink;
DustType = DustID.Pot;
AddMapEntry(new Color(152, 89, 78));
AddMapEntry(new Color(151, 91, 81));
Main.tileShine2[Type] = true;
TileID.Sets.CanBeDugByShovel[Type] = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

+66 -1
View File
@@ -1,16 +1,81 @@
using Microsoft.Xna.Framework;
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria.GameContent;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Walls
{
public class NavystoneWall : ModWall, IVisibleThroughWater
{
internal static FramedMaskTexture GlowMask;
int IVisibleThroughWater.WaterMapEntry { get; set; }
public override void SetStaticDefaults()
{
GlowMask = new("CalamityMod/Walls/NavystoneWall_Glow", 36, 36);
DustType = 96;
this.AddMapEntryWithWaterVisibility(new Color(16, 45, 48));
}
public override void Unload()
{
GlowMask?.Unload();
GlowMask = null;
}
public static void DrawWallGlow(int wallType, int i, int j, SpriteBatch spriteBatch)
{
if (GlowMask.Texture is null)
return;
Tile tile = Main.tile[i, j];
int xLength = 32;
int xOff = 0;
int xPos = tile.WallFrameX + xOff;
int yPos = tile.WallFrameY;
Rectangle frame = new Rectangle(xPos, yPos, xLength, 32);
Color drawcolor;
drawcolor = WorldGen.paintColor(tile.WallColor);
drawcolor.A = 255;
Vector2 zero = new Vector2(Main.offScreenRange, Main.offScreenRange);
if (Main.drawToScreen)
zero = Vector2.Zero;
Vector2 pos = new Vector2(i * 16 - (int)Main.screenPosition.X, j * 16 - (int)Main.screenPosition.Y) + zero;
Color lightColor = Lighting.GetColor(i, j, Color.White);
spriteBatch.Draw(TextureAssets.Wall[wallType].Value, pos + new Vector2(-8 + xOff, -8), frame, lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
if (GlowMask.HasContentInFramePos(xPos, yPos))
{
float brightness = MathHelper.Clamp(0.2f - (j / 680), 0f, 0.2f);
float time = Main.GameUpdateCount;
float waveScale1 = time * 0.094f;
int scalar = i - (j / 2);
float wave1 = waveScale1 * -50 + scalar * 12;
float wave1angle = 0.30f + 0.25f * MathF.Sin(MathHelper.ToRadians(wave1));
drawcolor *= brightness;
float transparency = 0.02f + (wave1angle / 4);
Color glowColor = Color.White * transparency;
for (int k = 0; k < 3; k++)
{
//Vector2 offset = new Vector2(Main.rand.NextFloat(-1, 1f), Main.rand.NextFloat(-1, 1f)) * 0.2f * k;
spriteBatch.Draw(GlowMask.Texture, pos + new Vector2(-8 + xOff, -8), frame, glowColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
}
}
}
public override bool PreDraw(int i, int j, SpriteBatch spriteBatch)
{
DrawWallGlow(Type, i, j, spriteBatch);
return false;
}
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

+21
View File
@@ -0,0 +1,21 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Walls
{
public class ShellTrimBrickWall : ModWall, IVisibleThroughWater
{
int IVisibleThroughWater.WaterMapEntry { get; set; }
public override void SetStaticDefaults()
{
Main.wallHouse[Type] = false;
DustType = 24;
this.AddMapEntryWithWaterVisibility(new Color(75, 71, 85));
}
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB