diff --git a/Tiles/Abyss/HardenedSulphurousSandstone.cs b/Tiles/Abyss/HardenedSulphurousSandstone.cs index 7710a7396f..c8becd91c8 100644 --- a/Tiles/Abyss/HardenedSulphurousSandstone.cs +++ b/Tiles/Abyss/HardenedSulphurousSandstone.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Tiles.Abyss public override void RandomUpdate(int i, int j) { - int num8 = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); + int vineLength = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); int nearbyVineCount = 0; for (int x = i - 15; x <= i + 15; x++) { @@ -84,29 +84,29 @@ namespace CalamityMod.Tiles.Abyss if (Main.tile[i, j + 1].LiquidAmount == 255 && Main.tile[i, j + 1].LiquidType != LiquidID.Lava) { - bool flag13 = false; - for (int num52 = num8; num52 > num8 - 10; num52--) + bool canGrowVine = false; + for (int k = vineLength; k > vineLength - 10; k--) { - if (CalamityUtils.ParanoidTileRetrieval(i, num52).BottomSlope) + if (CalamityUtils.ParanoidTileRetrieval(i, k).BottomSlope) { - flag13 = false; + canGrowVine = false; break; } - if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].HasTile && !Main.tile[i, k].BottomSlope) { - flag13 = true; + canGrowVine = true; break; } } - if (flag13) + if (canGrowVine) { - int num53 = i; - int num54 = j + 1; - Main.tile[num53, num54].TileType = (ushort)ModContent.TileType(); - Main.tile[num53, num54].Get().HasTile = true; - WorldGen.SquareTileFrame(num53, num54, true); + int vineX = i; + int vineY = j + 1; + Main.tile[vineX, vineY].TileType = (ushort)ModContent.TileType(); + Main.tile[vineX, vineY].Get().HasTile = true; + WorldGen.SquareTileFrame(vineX, vineY, true); if (Main.netMode == NetmodeID.Server) - NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); + NetMessage.SendTileSquare(-1, vineX, vineY, 3, TileChangeType.None); } } Main.tile[i, j].Get().Slope = SlopeType.Solid; diff --git a/Tiles/Abyss/PlantyMush.cs b/Tiles/Abyss/PlantyMush.cs index d883642617..ee518f5266 100644 --- a/Tiles/Abyss/PlantyMush.cs +++ b/Tiles/Abyss/PlantyMush.cs @@ -162,7 +162,7 @@ namespace CalamityMod.Tiles.Abyss NetMessage.SendTileSquare(-1, i, j - 1, 3, TileChangeType.None); } - int num8 = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); + int vineLength = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); if (Main.tile[i, j + 1] != null) { if (!Main.tile[i, j + 1].HasTile && Main.tile[i, j + 1].TileType != (ushort)ModContent.TileType()) @@ -171,29 +171,29 @@ namespace CalamityMod.Tiles.Abyss Main.tile[i, j + 1].WallType == (ushort)ModContent.WallType() && Main.tile[i, j + 1].LiquidType != LiquidID.Lava) { - bool flag13 = false; - for (int num52 = num8; num52 > num8 - 10; num52--) + bool canGrowVine = false; + for (int k = vineLength; k > vineLength - 10; k--) { - if (Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].BottomSlope) { - flag13 = false; + canGrowVine = false; break; } - if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].HasTile && !Main.tile[i, k].BottomSlope) { - flag13 = true; + canGrowVine = true; break; } } - if (flag13) + if (canGrowVine) { - int num53 = i; - int num54 = j + 1; - Main.tile[num53, num54].TileType = (ushort)ModContent.TileType(); - Main.tile[num53, num54].Get().HasTile = true; - WorldGen.SquareTileFrame(num53, num54, true); + int vineX = i; + int vineY = j + 1; + Main.tile[vineX, vineY].TileType = (ushort)ModContent.TileType(); + Main.tile[vineX, vineY].Get().HasTile = true; + WorldGen.SquareTileFrame(vineX, vineY, true); if (Main.netMode == NetmodeID.Server) - NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); + NetMessage.SendTileSquare(-1, vineX, vineY, 3, TileChangeType.None); } } } diff --git a/Tiles/Abyss/SulphurousSand.cs b/Tiles/Abyss/SulphurousSand.cs index 21129d9a32..5d35963b13 100644 --- a/Tiles/Abyss/SulphurousSand.cs +++ b/Tiles/Abyss/SulphurousSand.cs @@ -74,18 +74,18 @@ namespace CalamityMod.Tiles.Abyss { if (Main.tile[i, tileLocationY].LiquidAmount == 255) { - int num13 = 7; - int num14 = 6; - int num15 = 0; - for (int l = i - num13; l <= i + num13; l++) + int ambientObjectDetectRadius = 7; + int ambientObjectMax = 6; + int ambientObjectAmt = 0; + for (int l = i - ambientObjectDetectRadius; l <= i + ambientObjectDetectRadius; l++) { - for (int m = tileLocationY - num13; m <= tileLocationY + num13; m++) + for (int m = tileLocationY - ambientObjectDetectRadius; m <= tileLocationY + ambientObjectDetectRadius; m++) { if (Main.tile[l, m].HasTile && Main.tile[l, m].TileType == 81) - num15++; + ambientObjectAmt++; } } - if (num15 < num14 && Main.tile[i, tileLocationY - 1].LiquidAmount == 255 && + if (ambientObjectAmt < ambientObjectMax && Main.tile[i, tileLocationY - 1].LiquidAmount == 255 && Main.tile[i, tileLocationY - 2].LiquidAmount == 255 && Main.tile[i, tileLocationY - 3].LiquidAmount == 255 && Main.tile[i, tileLocationY - 4].LiquidAmount == 255) { @@ -96,18 +96,18 @@ namespace CalamityMod.Tiles.Abyss } else if (Main.tile[i, tileLocationY].LiquidAmount == 0) { - int num13 = 7; - int num14 = 6; - int num15 = 0; - for (int l = i - num13; l <= i + num13; l++) + int ambientObjectDetectRadius = 7; + int ambientObjectMax = 6; + int ambientObjectAmt = 0; + for (int l = i - ambientObjectDetectRadius; l <= i + ambientObjectDetectRadius; l++) { - for (int m = tileLocationY - num13; m <= tileLocationY + num13; m++) + for (int m = tileLocationY - ambientObjectDetectRadius; m <= tileLocationY + ambientObjectDetectRadius; m++) { if (Main.tile[l, m].HasTile && Main.tile[l, m].TileType == 324) - num15++; + ambientObjectAmt++; } } - if (num15 < num14) + if (ambientObjectAmt < ambientObjectMax) { WorldGen.PlaceTile(i, tileLocationY, 324, true, false, -1, Main.rand.Next(2)); if (Main.netMode == NetmodeID.Server && Main.tile[i, tileLocationY].HasTile) @@ -119,7 +119,7 @@ namespace CalamityMod.Tiles.Abyss } } - int num8 = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); + int vineLength = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); int nearbyVineCount = 0; for (int x = i - 15; x <= i + 15; x++) { @@ -143,29 +143,29 @@ namespace CalamityMod.Tiles.Abyss if (Main.tile[i, j + 1].LiquidAmount == 255 && Main.tile[i, j + 1].LiquidType != LiquidID.Lava) { - bool flag13 = false; - for (int num52 = num8; num52 > num8 - 10; num52--) + bool canGrowVine = false; + for (int k = vineLength; k > vineLength - 10; k--) { - if (Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].BottomSlope) { - flag13 = false; + canGrowVine = false; break; } - if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].HasTile && !Main.tile[i, k].BottomSlope) { - flag13 = true; + canGrowVine = true; break; } } - if (flag13) + if (canGrowVine) { - int num53 = i; - int num54 = j + 1; - Main.tile[num53, num54].TileType = (ushort)ModContent.TileType(); - Main.tile[num53, num54].Get().HasTile = true; - WorldGen.SquareTileFrame(num53, num54, true); + int vineX = i; + int vineY = j + 1; + Main.tile[vineX, vineY].TileType = (ushort)ModContent.TileType(); + Main.tile[vineX, vineY].Get().HasTile = true; + WorldGen.SquareTileFrame(vineX, vineY, true); if (Main.netMode == NetmodeID.Server) - NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); + NetMessage.SendTileSquare(-1, vineX, vineY, 3, TileChangeType.None); } Main.tile[i, j].Get().Slope = SlopeType.Solid; Main.tile[i, j].Get().IsHalfBlock = false; diff --git a/Tiles/Abyss/SulphurousSandstone.cs b/Tiles/Abyss/SulphurousSandstone.cs index c536be437c..a619209223 100644 --- a/Tiles/Abyss/SulphurousSandstone.cs +++ b/Tiles/Abyss/SulphurousSandstone.cs @@ -61,7 +61,7 @@ namespace CalamityMod.Tiles.Abyss public override void RandomUpdate(int i, int j) { - int num8 = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); + int vineLength = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); int nearbyVineCount = 0; for (int x = i - 15; x <= i + 15; x++) { @@ -85,29 +85,29 @@ namespace CalamityMod.Tiles.Abyss if (Main.tile[i, j + 1].LiquidAmount == 255 && Main.tile[i, j + 1].LiquidType != LiquidID.Lava) { - bool flag13 = false; - for (int num52 = num8; num52 > num8 - 10; num52--) + bool canGrowVine = false; + for (int k = vineLength; k > vineLength - 10; k--) { - if (Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].BottomSlope) { - flag13 = false; + canGrowVine = false; break; } - if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].HasTile && !Main.tile[i, k].BottomSlope) { - flag13 = true; + canGrowVine = true; break; } } - if (flag13) + if (canGrowVine) { - int num53 = i; - int num54 = j + 1; - Main.tile[num53, num54].TileType = (ushort)ModContent.TileType(); - Main.tile[num53, num54].Get().HasTile = true; - WorldGen.SquareTileFrame(num53, num54, true); + int vineX = i; + int vineY = j + 1; + Main.tile[vineX, vineY].TileType = (ushort)ModContent.TileType(); + Main.tile[vineX, vineY].Get().HasTile = true; + WorldGen.SquareTileFrame(vineX, vineY, true); if (Main.netMode == NetmodeID.Server) - NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); + NetMessage.SendTileSquare(-1, vineX, vineY, 3, TileChangeType.None); } Main.tile[i, j].Get().Slope = SlopeType.Solid; Main.tile[i, j].Get().IsHalfBlock = false; diff --git a/Tiles/Abyss/SulphurousShale.cs b/Tiles/Abyss/SulphurousShale.cs index a1558e1156..87887f78e1 100644 --- a/Tiles/Abyss/SulphurousShale.cs +++ b/Tiles/Abyss/SulphurousShale.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Tiles.Abyss public override void RandomUpdate(int i, int j) { - int num8 = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); + int vineLength = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)Main.maxTilesY * 0.143)); int nearbyVineCount = 0; for (int x = i - 15; x <= i + 15; x++) { @@ -77,29 +77,29 @@ namespace CalamityMod.Tiles.Abyss if (Main.tile[i, j + 1].LiquidAmount == 255 && Main.tile[i, j + 1].LiquidType != LiquidID.Lava) { - bool flag13 = false; - for (int num52 = num8; num52 > num8 - 10; num52--) + bool canGrowVine = false; + for (int k = vineLength; k > vineLength - 10; k--) { - if (Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].BottomSlope) { - flag13 = false; + canGrowVine = false; break; } - if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].HasTile && !Main.tile[i, k].BottomSlope) { - flag13 = true; + canGrowVine = true; break; } } - if (flag13) + if (canGrowVine) { - int num53 = i; - int num54 = j + 1; - Main.tile[num53, num54].TileType = (ushort)ModContent.TileType(); - Main.tile[num53, num54].Get().HasTile = true; - WorldGen.SquareTileFrame(num53, num54, true); + int vineX = i; + int vineY = j + 1; + Main.tile[vineX, vineY].TileType = (ushort)ModContent.TileType(); + Main.tile[vineX, vineY].Get().HasTile = true; + WorldGen.SquareTileFrame(vineX, vineY, true); if (Main.netMode == NetmodeID.Server) - NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); + NetMessage.SendTileSquare(-1, vineX, vineY, 3, TileChangeType.None); } Main.tile[i, j].Get().Slope = SlopeType.Solid; Main.tile[i, j].Get().IsHalfBlock = false; diff --git a/Tiles/Abyss/ViperVines.cs b/Tiles/Abyss/ViperVines.cs index 318b6590f7..3f491fe5fe 100644 --- a/Tiles/Abyss/ViperVines.cs +++ b/Tiles/Abyss/ViperVines.cs @@ -67,36 +67,36 @@ namespace CalamityMod.Tiles.Abyss { if (Main.tile[i, j + 1].LiquidAmount >= 128 && Main.tile[i, j + 1].LiquidType != LiquidID.Lava) { - bool flag13 = false; - for (int num52 = j; num52 > j - 10; j--) + bool canGrowVine = false; + for (int k = j; k > j - 10; j--) { - if (Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].BottomSlope) { - flag13 = false; + canGrowVine = false; break; } - if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope) + if (Main.tile[i, k].HasTile && !Main.tile[i, k].BottomSlope) { - flag13 = true; + canGrowVine = true; break; } } - if (flag13) + if (canGrowVine) { - int num53 = i; - int num54 = j + 1; - Main.tile[num53, num54].TileType = (ushort)ModContent.TileType(); - Main.tile[num53, num54].TileFrameX = (short)(WorldGen.genRand.Next(8) * 18); - Main.tile[num53, num54].TileFrameY = (short)(4 * 18); - Main.tile[num53, num54 - 1].TileFrameX = (short)(WorldGen.genRand.Next(12) * 18); - Main.tile[num53, num54 - 1].TileFrameY = (short)(WorldGen.genRand.Next(4) * 18); - Main.tile[num53, num54].Get().HasTile = true; - WorldGen.SquareTileFrame(num53, num54, true); - WorldGen.SquareTileFrame(num53, num54 - 1, true); + int vineX = i; + int vineY = j + 1; + Main.tile[vineX, vineY].TileType = (ushort)ModContent.TileType(); + Main.tile[vineX, vineY].TileFrameX = (short)(WorldGen.genRand.Next(8) * 18); + Main.tile[vineX, vineY].TileFrameY = (short)(4 * 18); + Main.tile[vineX, vineY - 1].TileFrameX = (short)(WorldGen.genRand.Next(12) * 18); + Main.tile[vineX, vineY - 1].TileFrameY = (short)(WorldGen.genRand.Next(4) * 18); + Main.tile[vineX, vineY].Get().HasTile = true; + WorldGen.SquareTileFrame(vineX, vineY, true); + WorldGen.SquareTileFrame(vineX, vineY - 1, true); if (Main.netMode == NetmodeID.Server) { - NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); - NetMessage.SendTileSquare(-1, num53, num54 - 1, 3, TileChangeType.None); + NetMessage.SendTileSquare(-1, vineX, vineY, 3, TileChangeType.None); + NetMessage.SendTileSquare(-1, vineX, vineY - 1, 3, TileChangeType.None); } } } diff --git a/Tiles/AstralBrick.cs b/Tiles/AstralBrick.cs index af42d9246f..5c2f42bb3f 100644 --- a/Tiles/AstralBrick.cs +++ b/Tiles/AstralBrick.cs @@ -62,7 +62,6 @@ namespace CalamityMod.Tiles Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50)); Tile trackTile = Main.tile[i, j]; - double num6 = Main.time * 0.08; TileFraming.SlopedGlowmask(i, j, 0, glowmask, drawOffset, null, GetDrawColour(i, j, drawColour), default); diff --git a/Tiles/CalamityGlobalTile.cs b/Tiles/CalamityGlobalTile.cs index 0ccb6b579b..66982b5582 100644 --- a/Tiles/CalamityGlobalTile.cs +++ b/Tiles/CalamityGlobalTile.cs @@ -383,8 +383,8 @@ namespace CalamityMod.Tiles foreach (Item item in itemDrops) { item.Prefix(-1); // You're twisted if you have a prefixable item inside ores but fuck it - int num = Item.NewItem(source, pos, item); - Main.item[num].TryCombiningIntoNearbyItems(num); + int moddedOre = Item.NewItem(source, pos, item); + Main.item[moddedOre].TryCombiningIntoNearbyItems(moddedOre); } } else // Fetch normal tile-item relationships (all vanilla ores are normal thankfully) @@ -476,19 +476,19 @@ namespace CalamityMod.Tiles return; } - int num = tileSafely.TileFrameX / 22; - int num2 = tileSafely.TileFrameY / 22; - if (num == 3 && num2 <= 2) + int treeTileX = tileSafely.TileFrameX / 22; + int treeTileY = tileSafely.TileFrameY / 22; + if (treeTileX == 3 && treeTileY <= 2) x++; - else if (num == 4 && num2 >= 3 && num2 <= 5) + else if (treeTileX == 4 && treeTileY >= 3 && treeTileY <= 5) x--; - else if (num == 1 && num2 >= 6 && num2 <= 8) + else if (treeTileX == 1 && treeTileY >= 6 && treeTileY <= 8) x--; - else if (num == 2 && num2 >= 6 && num2 <= 8) + else if (treeTileX == 2 && treeTileY >= 6 && treeTileY <= 8) x++; - else if (num == 2 && num2 >= 9) + else if (treeTileX == 2 && treeTileY >= 9) x++; - else if (num == 3 && num2 >= 9) + else if (treeTileX == 3 && treeTileY >= 9) x--; tileSafely = Framing.GetTileSafely(x, y); diff --git a/Tiles/FurnitureAshen/AshenAccentSlab.cs b/Tiles/FurnitureAshen/AshenAccentSlab.cs index 5b213032b4..3c49bc54f5 100644 --- a/Tiles/FurnitureAshen/AshenAccentSlab.cs +++ b/Tiles/FurnitureAshen/AshenAccentSlab.cs @@ -514,7 +514,6 @@ namespace CalamityMod.Tiles.FurnitureAshen Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAshen/AshenSlabGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(64, 64, 64, 64)); Tile trackTile = Main.tile[i, j]; - double num6 = Main.time * 0.08; if (!trackTile.IsHalfBlock && trackTile.Slope == 0) { Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xDrawPos, yDrawPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); diff --git a/Tiles/FurnitureAshen/AshenSlab.cs b/Tiles/FurnitureAshen/AshenSlab.cs index 9c3713b9fd..21e695cc16 100644 --- a/Tiles/FurnitureAshen/AshenSlab.cs +++ b/Tiles/FurnitureAshen/AshenSlab.cs @@ -514,7 +514,6 @@ namespace CalamityMod.Tiles.FurnitureAshen Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureAshen/AshenSlabGlow").Value; Color drawColour = GetDrawColour(i, j, new Color(64, 64, 64, 64)); Tile trackTile = Main.tile[i, j]; - double num6 = Main.time * 0.08; if (!trackTile.IsHalfBlock && trackTile.Slope == 0) { Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xDrawPos, yDrawPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs index 9e26729104..22bb415dbe 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs @@ -43,7 +43,6 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Color drawColour = GetDrawColour(i, j, new Color(128, 128, 128, 128)); Tile trackTile = Main.tile[i, j]; - double num6 = Main.time * 0.08; TileFraming.SlopedGlowmask(i, j, 0, glowmask, drawOffset, null, GetDrawColour(i, j, drawColour), default); } diff --git a/Tiles/FurnitureProfaned/ProfanedRock.cs b/Tiles/FurnitureProfaned/ProfanedRock.cs index e955be3677..5ee5413580 100644 --- a/Tiles/FurnitureProfaned/ProfanedRock.cs +++ b/Tiles/FurnitureProfaned/ProfanedRock.cs @@ -222,7 +222,6 @@ namespace CalamityMod.Tiles.FurnitureProfaned Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Color drawColour = GetDrawColour(i, j, new Color(25, 25, 25, 25)); Tile trackTile = Main.tile[i, j]; - double num6 = Main.time * 0.08; TileFraming.SlopedGlowmask(i, j, 0, glowmask, drawOffset, null, GetDrawColour(i, j, drawColour), default); } diff --git a/Tiles/FurnitureProfaned/RunicProfanedBrick.cs b/Tiles/FurnitureProfaned/RunicProfanedBrick.cs index f861257602..c19ece8e26 100644 --- a/Tiles/FurnitureProfaned/RunicProfanedBrick.cs +++ b/Tiles/FurnitureProfaned/RunicProfanedBrick.cs @@ -54,7 +54,6 @@ namespace CalamityMod.Tiles.FurnitureProfaned Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Color drawColour = GetDrawColour(i, j, new Color(128, 128, 128, 128)); Tile trackTile = Main.tile[i, j]; - double num6 = Main.time * 0.08; TileFraming.SlopedGlowmask(i, j, 0, glowmask, drawOffset, null, GetDrawColour(i, j, drawColour), default); } diff --git a/Tiles/FurnitureStratus/StratusBricks.cs b/Tiles/FurnitureStratus/StratusBricks.cs index 27a94841bb..93062b4dc7 100644 --- a/Tiles/FurnitureStratus/StratusBricks.cs +++ b/Tiles/FurnitureStratus/StratusBricks.cs @@ -43,7 +43,6 @@ namespace CalamityMod.Tiles.FurnitureStratus Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Tile trackTile = Main.tile[i, j]; - double num6 = Main.time * 0.08; TileFraming.SlopedGlowmask(i, j, 0, glowmask, drawOffset, null, GetDrawColour(i, j, drawColour), default); } diff --git a/Tiles/FurnitureVoid/SmoothVoidstone.cs b/Tiles/FurnitureVoid/SmoothVoidstone.cs index 09c3a0cba8..0f58958ee4 100644 --- a/Tiles/FurnitureVoid/SmoothVoidstone.cs +++ b/Tiles/FurnitureVoid/SmoothVoidstone.cs @@ -228,7 +228,6 @@ namespace CalamityMod.Tiles.FurnitureVoid brightness *= (float)MathF.Sin(i * 18f + declareThisHereToPreventRunningTheSameCalculationMultipleTimes); brightness *= (float)MathF.Sin(j * 18f + declareThisHereToPreventRunningTheSameCalculationMultipleTimes); drawColour *= brightness; - double num6 = Main.time * 0.08; TileFraming.SlopedGlowmask(i, j, 0, glowmask, drawOffset, null, GetDrawColour(i, j, drawColour), default); } diff --git a/Tiles/FurnitureVoid/VoidstoneSlab.cs b/Tiles/FurnitureVoid/VoidstoneSlab.cs index 3e104ec428..a225d5eb71 100644 --- a/Tiles/FurnitureVoid/VoidstoneSlab.cs +++ b/Tiles/FurnitureVoid/VoidstoneSlab.cs @@ -159,7 +159,6 @@ namespace CalamityMod.Tiles.FurnitureVoid Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + zero; Color drawColour = GetDrawColour(i, j, new Color(75, 75, 75, 75)); Tile trackTile = Main.tile[i, j]; - double num6 = Main.time * 0.08; if (!trackTile.IsHalfBlock && trackTile.Slope == 0) { Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);