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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

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

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.

View File

@ -10,12 +10,10 @@ There is a config in-game to use vanilla materials instead.\
Addind a **Personal Teleporter** to the world add an icon on your map.\ Addind a **Personal Teleporter** to the world add an icon on your map.\
Hover over one of the **Personal Teleporter** icon on your map while holding "Shift" to teleport to it!\ Hover over one of the **Personal Teleporter** icon on your map while holding "Shift" to teleport to it!\
\ \
![Personal Teleporter in the Crimson.](https://mxcloud.ovh/s/5XAxagRyidYNQmK/download/tTP-g001.png) ![Personal Teleporter in the Crimson.](https://mxcloud.ovh/apps/files_sharing/publicpreview/4EenLTKi6XyY9XT?file=/&fileId=68801&x=2560&y=1440&a=true&etag=2af122c789fb028c78f861c1b373c2a0)
![Personal Teleporter in the Jungle.](https://mxcloud.ovh/s/4EenLTKi6XyY9XT/download/tTP-g002.png) ![Personal Teleporter in the Jungle.](https://mxcloud.ovh/apps/files_sharing/publicpreview/5XAxagRyidYNQmK?file=/&fileId=68786&x=2560&y=1440&a=true&etag=5fc3f792590a81dd10cd74444bb5661f)
![Personal Teleporter in the world.](https://mxcloud.ovh/s/AmzkNjWnqE2a4LF/download/tTP-g003.png) ![Personal Teleporter in the world.](https://mxcloud.ovh/apps/files_sharing/publicpreview/AmzkNjWnqE2a4LF?file=/&fileId=68831&x=2560&y=1440&a=true&etag=023c55a9496c4690e86de7d65139e149)
## CHANGELOG ## CHANGELOG
**1.2.0** **1.3.0**
- Added the vanilla material(s) list to the config. - Personal Teleporter Item/Tile Sprite Updated
- Added the material(s) quantity list to the config.
- YOU NEED TO FORCE RELOAD AFTER EVERY CHANGE.

View File

@ -1,6 +1,6 @@
displayName = tTP displayName = tTP
author = mikx author = mikx
version = 1.2.0 version = 1.3.0
sortAfter = tMx sortAfter = tMx
modReferences = tMx modReferences = tMx
dllReferences = Newtonsoft.Json dllReferences = Newtonsoft.Json