thank the lord that it didn't need an On edit

This commit is contained in:
Heart-Plus-Up committed 2023-03-01 23:49:47 -07:00
1 parent 1c45d06033
commit 00bba09b2d
3 files changed
+6 -11

No files matched your search

+1 -9
View File
@@ -21,6 +21,7 @@ namespace CalamityMod.Tiles.SunkenSea
Main.tileLighted[Type] = true;
Main.tileShine2[Type] = false;
TileID.Sets.ChecksForMerge[Type] = true;
TileID.Sets.WallsMergeWith[Type] = true;
DustType = 108;
ItemDrop = ModContent.ItemType<Items.Placeables.EutrophicGlass>();
ModTranslation name = CreateMapEntryName();
@@ -34,15 +35,6 @@ namespace CalamityMod.Tiles.SunkenSea
{
num = fail ? 1 : 3;
}
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
{
int xPos = i % 10;
int yPos = j % 10;
frameXOffset = xPos * sheetWidth;
frameYOffset = yPos * sheetHeight;
}
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
{
float transparency = 0.60f;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

+5 -2
View File
@@ -1256,8 +1256,11 @@ namespace CalamityMod
Main.spriteBatch.Draw(texture, drawPos, TileFrame, drawColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
}
drawPos = new Vector2(i * 16, j * 16) + offsets;
TileFrame = new Rectangle(TileFrameX, TileFrameY, 16, 2);
Main.spriteBatch.Draw(texture, drawPos, TileFrame, drawColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
if (tile.TileType != ModContent.TileType<EutrophicGlass>())
{
TileFrame = new Rectangle(TileFrameX, TileFrameY, 16, 2);
Main.spriteBatch.Draw(texture, drawPos, TileFrame, drawColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
}
}
}
}