1.3.0 - Personal Teleporter Item/Tile Sprite Update

This commit is contained in:
mikx
2025-02-20 01:06:11 -05:00
parent 830304e231
commit 16075d0f3b
7 changed files with 13 additions and 26 deletions

View File

@@ -26,31 +26,20 @@ namespace tTP.Content.Tiles
Main.tileLighted[Type] = true;
TileID.Sets.DisableSmartCursor[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
TileObjectData.addTile(Type);
}
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
{
Tile tile = Main.tile[i, j];
// If the torch is on
if (tile.TileFrameX < 66)
if (tile.TileFrameY < 36)
{
int style = TileObjectData.GetTileStyle(Main.tile[i, j]);
// Make it emit the following light.
if (style == 0)
{
r = 0.9f;
g = 0.9f;
b = 0.9f;
}
else if (style == 1)
{
r = 0.5f;
g = 1.5f;
b = 0.5f;
}
float pulse = Main.rand.Next(28, 42) * 0.005f;
pulse += (270 - Main.mouseTextColor) / 700f;
r = 0.1f + pulse;
g = 0.1f + pulse;
b = 0.9f + pulse;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.