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;
|
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 |
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.\
|
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!\
|
||||||
\
|
\
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## 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.
|
|
Loading…
x
Reference in New Issue
Block a user