1.3.0 - Personal Teleporter Item/Tile Sprite Update
This commit is contained in:
parent
830304e231
commit
16075d0f3b
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.7 KiB |
@ -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 |
BIN
Content/Tiles/PersonalTeleporter.png_
Normal file
BIN
Content/Tiles/PersonalTeleporter.png_
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
BIN
Content/Tiles/PersonalTeleporter.psd
Normal file
BIN
Content/Tiles/PersonalTeleporter.psd
Normal file
Binary file not shown.
12
README.md
12
README.md
@ -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.\
|
||||
Hover over one of the **Personal Teleporter** icon on your map while holding "Shift" to teleport to it!\
|
||||
\
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## CHANGELOG
|
||||
**1.2.0**
|
||||
- Added the vanilla material(s) list to the config.
|
||||
- Added the material(s) quantity list to the config.
|
||||
- YOU NEED TO FORCE RELOAD AFTER EVERY CHANGE.
|
||||
**1.3.0**
|
||||
- Personal Teleporter Item/Tile Sprite Updated
|
Loading…
x
Reference in New Issue
Block a user