1.3.0 - Personal Teleporter Item/Tile Sprite Update
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user