Cleared CalamityRecipes.cs and a lot of tile stuff
This commit is contained in:
1 parent
47fd2e27d6
commit
a01414fe67
84 files changed
+499
-586
No files matched your search
@@ -46,14 +46,14 @@ namespace CalamityMod.Items.Accessories
|
||||
if (!walkTile.HasTile && walkTile.LiquidAmount == 0 && groundTile != null && WorldGen.SolidTile(groundTile))
|
||||
{
|
||||
walkTile.TileFrameY = 0;
|
||||
walkTile.slope(0);
|
||||
walkTile.Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
walkTile.halfBrick(false);
|
||||
// On dirt blocks, there's a small chance to grow a dye plant.
|
||||
if (groundTile.TileType == TileID.Dirt)
|
||||
{
|
||||
if (Main.rand.NextBool(1000))
|
||||
{
|
||||
walkTile.active(true);
|
||||
walkTile.Get<TileWallWireStateData>().HasTile = true;
|
||||
walkTile.TileType = TileID.DyePlants;
|
||||
walkTile.TileFrameX = (short)(34 * Main.rand.Next(1, 13));
|
||||
while (walkTile.TileFrameX == 144)
|
||||
@@ -69,7 +69,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
walkTile.active(true);
|
||||
walkTile.Get<TileWallWireStateData>().HasTile = true;
|
||||
walkTile.TileType = TileID.Plants;
|
||||
walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 11));
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
else
|
||||
{
|
||||
walkTile.active(true);
|
||||
walkTile.Get<TileWallWireStateData>().HasTile = true;
|
||||
walkTile.TileType = TileID.Plants2;
|
||||
walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 21));
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
walkTile.active(true);
|
||||
walkTile.Get<TileWallWireStateData>().HasTile = true;
|
||||
walkTile.TileType = TileID.HallowedPlants;
|
||||
walkTile.TileFrameX = (short)(18 * Main.rand.Next(4, 7));
|
||||
while (walkTile.TileFrameX == 90)
|
||||
@@ -103,7 +103,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
else
|
||||
{
|
||||
walkTile.active(true);
|
||||
walkTile.Get<TileWallWireStateData>().HasTile = true;
|
||||
walkTile.TileType = TileID.HallowedPlants2;
|
||||
walkTile.TileFrameX = (short)(18 * Main.rand.Next(2, 8));
|
||||
while (walkTile.TileFrameX == 90)
|
||||
@@ -117,7 +117,7 @@ namespace CalamityMod.Items.Accessories
|
||||
// On jungle grass, grow jungle flowers.
|
||||
else if (groundTile.TileType == TileID.JungleGrass)
|
||||
{
|
||||
walkTile.active(true);
|
||||
walkTile.Get<TileWallWireStateData>().HasTile = true;
|
||||
walkTile.TileType = TileID.JunglePlants2;
|
||||
walkTile.TileFrameX = (short)(18 * Main.rand.Next(9, 17));
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
CreateRecipe().
|
||||
AddIngredient<GodSlayerLeggings>().
|
||||
AddIngredient<BloodflareCuisses>().
|
||||
AddIngredient<TarragonLeggings>().
|
||||
|
||||
@@ -46,14 +46,14 @@ namespace CalamityMod.Items.Armor
|
||||
if (!tile.HasTile && tile.LiquidAmount == 0 && Main.tile[x, y + 1] != null && WorldGen.SolidTile(x, y + 1))
|
||||
{
|
||||
tile.TileFrameY = 0;
|
||||
tile.slope(0);
|
||||
tile.Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
tile.halfBrick(false);
|
||||
//On dirt blocks, there's a small chance to grow a dye plant
|
||||
if (Main.tile[x, y + 1].TileType == TileID.Dirt)
|
||||
{
|
||||
if (Main.rand.NextBool(1000))
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.TileType = TileID.DyePlants;
|
||||
tile.TileFrameX = (short)(34 * Main.rand.Next(1, 13));
|
||||
while (tile.TileFrameX == 144)
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.TileType = TileID.Plants;
|
||||
tile.TileFrameX = (short)(18 * Main.rand.Next(6, 11));
|
||||
while (tile.TileFrameX == 144)
|
||||
@@ -81,7 +81,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
else
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.TileType = TileID.Plants2;
|
||||
tile.TileFrameX = (short)(18 * Main.rand.Next(6, 21));
|
||||
while (tile.TileFrameX == 144)
|
||||
@@ -99,7 +99,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.TileType = TileID.HallowedPlants;
|
||||
tile.TileFrameX = (short)(18 * Main.rand.Next(4, 7));
|
||||
while (tile.TileFrameX == 90)
|
||||
@@ -109,7 +109,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
else
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.TileType = TileID.HallowedPlants2;
|
||||
tile.TileFrameX = (short)(18 * Main.rand.Next(2, 8));
|
||||
while (tile.TileFrameX == 90)
|
||||
@@ -125,7 +125,7 @@ namespace CalamityMod.Items.Armor
|
||||
//On jungle grass, grow jungle flowers
|
||||
else if (Main.tile[x, y + 1].TileType == TileID.JungleGrass)
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.TileType = TileID.JunglePlants2;
|
||||
tile.TileFrameX = (short)(18 * Main.rand.Next(9, 17));
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient)
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Tools.ClimateChange
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.FallenStar, 10).
|
||||
AddIngredient(ItemID.SoulofLight, 7).
|
||||
AddIngredient(ItemID.SoulofNight, 7).
|
||||
|
||||
@@ -1563,9 +1563,9 @@ namespace CalamityMod.NPCs.Providence
|
||||
&& !Main.tile[x, y].HasTile)
|
||||
{
|
||||
Main.tile[x, y].TileType = (ushort)ModContent.TileType<ProfanedRock>();
|
||||
Main.tile[x, y].active(true);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
Main.tile[x, y].LiquidType = LiquidID.Water;
|
||||
Main.tile[x, y].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
Main.tile[x, y].LiquidAmount = 0;
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
|
||||
@@ -504,7 +504,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
if ((num55 == num52 - num54 || num55 == num52 + num54 || num56 == num53 - num54 || num56 == num53 + num54) && !Main.tile[num55, num56].HasTile)
|
||||
{
|
||||
Main.tile[num55, num56].TileType = (ushort)ModContent.TileType<Tiles.ArenaTile>();
|
||||
Main.tile[num55, num56].active(true);
|
||||
Main.tile[num55, num56].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
}
|
||||
Tile tileAtPosition = Main.tile[i, trueStartingPositionY];
|
||||
Tile tileAbovePosition = Main.tile[i, trueStartingPositionY - 1];
|
||||
if (!tileAtPosition.HasTile || tileAtPosition.IsHalfBlock || tileAtPosition.slope() != 0)
|
||||
if (!tileAtPosition.HasTile || tileAtPosition.IsHalfBlock || tileAtPosition.Slope != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -81,14 +81,14 @@ namespace CalamityMod.Tiles.Abyss
|
||||
tileAtPosition = Main.tile[i, trueStartingPositionY - 1 - k];
|
||||
if (k == 0)
|
||||
{
|
||||
tileAtPosition.active(true);
|
||||
tileAtPosition.Get<TileWallWireStateData>().HasTile = true;
|
||||
tileAtPosition.TileType = TileID.PalmTree;
|
||||
tileAtPosition.TileFrameX = 66;
|
||||
tileAtPosition.TileFrameY = 0;
|
||||
}
|
||||
else if (k == treeHeight - 1)
|
||||
{
|
||||
tileAtPosition.active(true);
|
||||
tileAtPosition.Get<TileWallWireStateData>().HasTile = true;
|
||||
tileAtPosition.TileType = TileID.PalmTree;
|
||||
tileAtPosition.TileFrameX = (short)(22 * WorldGen.genRand.Next(4, 7));
|
||||
tileAtPosition.TileFrameY = frameY;
|
||||
@@ -104,7 +104,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
frameY += (short)(Math.Sign(frameYIdeal) * 2);
|
||||
}
|
||||
}
|
||||
tileAtPosition.active(true);
|
||||
tileAtPosition.Get<TileWallWireStateData>().HasTile = true;
|
||||
tileAtPosition.TileType = TileID.PalmTree;
|
||||
tileAtPosition.TileFrameX = (short)(22 * WorldGen.genRand.Next(0, 3));
|
||||
tileAtPosition.TileFrameY = frameY;
|
||||
|
||||
@@ -67,12 +67,12 @@ namespace CalamityMod.Tiles.Abyss
|
||||
bool flag13 = false;
|
||||
for (int num52 = num8; num52 > num8 - 10; num52--)
|
||||
{
|
||||
if (CalamityUtils.ParanoidTileRetrieval(i, num52).bottomSlope())
|
||||
if (CalamityUtils.ParanoidTileRetrieval(i, num52).BottomSlope)
|
||||
{
|
||||
flag13 = false;
|
||||
break;
|
||||
}
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = true;
|
||||
break;
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
int num53 = i;
|
||||
int num54 = j + 1;
|
||||
Main.tile[num53, num54].TileType = (ushort)ModContent.TileType<SulphurousVines>();
|
||||
Main.tile[num53, num54].active(true);
|
||||
Main.tile[num53, num54].Get<TileWallWireStateData>().HasTile = true;
|
||||
WorldGen.SquareTileFrame(num53, num54, true);
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
@@ -91,8 +91,8 @@ namespace CalamityMod.Tiles.Abyss
|
||||
}
|
||||
}
|
||||
}
|
||||
Main.tile[i, j].slope(0);
|
||||
Main.tile[i, j].halfBrick(false);
|
||||
Main.tile[i, j].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[i, j].Get<TileWallWireStateData>().IsHalfBlock = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
|
||||
AddMapEntry(new Color(0, 150, 200), name);
|
||||
SoundType = SoundID.Item;
|
||||
soundStyle = 27;
|
||||
SoundStyle = 27;
|
||||
DustType = 67;
|
||||
ItemDrop = ModContent.ItemType<Lumenite>();
|
||||
Main.tileSpelunker[Type] = true;
|
||||
@@ -39,32 +39,32 @@ namespace CalamityMod.Tiles.Abyss
|
||||
|
||||
public override bool CanPlace(int i, int j)
|
||||
{
|
||||
if (Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].IsHalfBlock)
|
||||
if (Main.tile[i, j + 1].Slope == 0 && !Main.tile[i, j + 1].IsHalfBlock)
|
||||
return true;
|
||||
if (Main.tile[i, j - 1].slope() == 0 && !Main.tile[i, j - 1].IsHalfBlock)
|
||||
if (Main.tile[i, j - 1].Slope == 0 && !Main.tile[i, j - 1].IsHalfBlock)
|
||||
return true;
|
||||
if (Main.tile[i + 1, j].slope() == 0 && !Main.tile[i + 1, j].IsHalfBlock)
|
||||
if (Main.tile[i + 1, j].Slope == 0 && !Main.tile[i + 1, j].IsHalfBlock)
|
||||
return true;
|
||||
if (Main.tile[i - 1, j].slope() == 0 && !Main.tile[i - 1, j].IsHalfBlock)
|
||||
if (Main.tile[i - 1, j].Slope == 0 && !Main.tile[i - 1, j].IsHalfBlock)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void PlaceInWorld(int i, int j, Item item)
|
||||
{
|
||||
if (Main.tile[i, j + 1].HasTile && Main.tileSolid[Main.tile[i, j + 1].TileType] && Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].IsHalfBlock)
|
||||
if (Main.tile[i, j + 1].HasTile && Main.tileSolid[Main.tile[i, j + 1].TileType] && Main.tile[i, j + 1].Slope == 0 && !Main.tile[i, j + 1].IsHalfBlock)
|
||||
{
|
||||
Main.tile[i, j].TileFrameY = (short)(0 * 18);
|
||||
}
|
||||
else if (Main.tile[i, j - 1].HasTile && Main.tileSolid[Main.tile[i, j - 1].TileType] && Main.tile[i, j - 1].slope() == 0 && !Main.tile[i, j - 1].IsHalfBlock)
|
||||
else if (Main.tile[i, j - 1].HasTile && Main.tileSolid[Main.tile[i, j - 1].TileType] && Main.tile[i, j - 1].Slope == 0 && !Main.tile[i, j - 1].IsHalfBlock)
|
||||
{
|
||||
Main.tile[i, j].TileFrameY = (short)(1 * 18);
|
||||
}
|
||||
else if (Main.tile[i + 1, j].HasTile && Main.tileSolid[Main.tile[i + 1, j].TileType] && Main.tile[i + 1, j].slope() == 0 && !Main.tile[i + 1, j].IsHalfBlock)
|
||||
else if (Main.tile[i + 1, j].HasTile && Main.tileSolid[Main.tile[i + 1, j].TileType] && Main.tile[i + 1, j].Slope == 0 && !Main.tile[i + 1, j].IsHalfBlock)
|
||||
{
|
||||
Main.tile[i, j].TileFrameY = (short)(2 * 18);
|
||||
}
|
||||
else if (Main.tile[i - 1, j].HasTile && Main.tileSolid[Main.tile[i - 1, j].TileType] && Main.tile[i - 1, j].slope() == 0 && !Main.tile[i - 1, j].IsHalfBlock)
|
||||
else if (Main.tile[i - 1, j].HasTile && Main.tileSolid[Main.tile[i - 1, j].TileType] && Main.tile[i - 1, j].Slope == 0 && !Main.tile[i - 1, j].IsHalfBlock)
|
||||
{
|
||||
Main.tile[i, j].TileFrameY = (short)(3 * 18);
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
if (Main.tile[i, j].LiquidAmount <= 0)
|
||||
{
|
||||
Main.tile[i, j].LiquidAmount = 255;
|
||||
Main.tile[i, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -57,12 +57,12 @@ namespace CalamityMod.Tiles.Abyss
|
||||
bool flag13 = false;
|
||||
for (int num52 = num8; num52 > num8 - 10; num52--)
|
||||
{
|
||||
if (Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = false;
|
||||
break;
|
||||
}
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = true;
|
||||
break;
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
int num53 = i;
|
||||
int num54 = j + 1;
|
||||
Main.tile[num53, num54].TileType = (ushort)ModContent.TileType<ViperVines>();
|
||||
Main.tile[num53, num54].active(true);
|
||||
Main.tile[num53, num54].Get<TileWallWireStateData>().HasTile = true;
|
||||
WorldGen.SquareTileFrame(num53, num54, true);
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
if (Main.tile[i - 1, j].LiquidAmount <= 128)
|
||||
{
|
||||
Main.tile[i - 1, j].LiquidAmount = 255;
|
||||
Main.tile[i - 1, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i - 1, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
if (Main.tile[i - 2, j].LiquidAmount <= 128)
|
||||
{
|
||||
Main.tile[i - 2, j].LiquidAmount = 255;
|
||||
Main.tile[i - 2, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i - 2, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
if (Main.tile[i - 3, j].LiquidAmount <= 128)
|
||||
{
|
||||
Main.tile[i - 3, j].LiquidAmount = 255;
|
||||
Main.tile[i - 3, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i - 3, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -84,7 +84,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
if (Main.tile[i + 1, j].LiquidAmount <= 128)
|
||||
{
|
||||
Main.tile[i + 1, j].LiquidAmount = 255;
|
||||
Main.tile[i + 1, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i + 1, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -95,7 +95,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
if (Main.tile[i + 2, j].LiquidAmount <= 128)
|
||||
{
|
||||
Main.tile[i + 2, j].LiquidAmount = 255;
|
||||
Main.tile[i + 2, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i + 2, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,7 +106,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
if (Main.tile[i + 3, j].LiquidAmount <= 128)
|
||||
{
|
||||
Main.tile[i + 3, j].LiquidAmount = 255;
|
||||
Main.tile[i + 3, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i + 3, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -219,12 +219,12 @@ namespace CalamityMod.Tiles.Abyss
|
||||
bool flag13 = false;
|
||||
for (int num52 = num8; num52 > num8 - 10; num52--)
|
||||
{
|
||||
if (Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = false;
|
||||
break;
|
||||
}
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = true;
|
||||
break;
|
||||
@@ -235,14 +235,14 @@ namespace CalamityMod.Tiles.Abyss
|
||||
int num53 = i;
|
||||
int num54 = j + 1;
|
||||
Main.tile[num53, num54].TileType = (ushort)ModContent.TileType<SulphurousVines>();
|
||||
Main.tile[num53, num54].active(true);
|
||||
Main.tile[num53, num54].Get<TileWallWireStateData>().HasTile = true;
|
||||
WorldGen.SquareTileFrame(num53, num54, true);
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None);
|
||||
}
|
||||
}
|
||||
Main.tile[i, j].slope(0);
|
||||
Main.tile[i, j].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[i, j].halfBrick(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,12 +67,12 @@ namespace CalamityMod.Tiles.Abyss
|
||||
bool flag13 = false;
|
||||
for (int num52 = num8; num52 > num8 - 10; num52--)
|
||||
{
|
||||
if (Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = false;
|
||||
break;
|
||||
}
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = true;
|
||||
break;
|
||||
@@ -83,14 +83,14 @@ namespace CalamityMod.Tiles.Abyss
|
||||
int num53 = i;
|
||||
int num54 = j + 1;
|
||||
Main.tile[num53, num54].TileType = (ushort)ModContent.TileType<SulphurousVines>();
|
||||
Main.tile[num53, num54].active(true);
|
||||
Main.tile[num53, num54].Get<TileWallWireStateData>().HasTile = true;
|
||||
WorldGen.SquareTileFrame(num53, num54, true);
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None);
|
||||
}
|
||||
}
|
||||
Main.tile[i, j].slope(0);
|
||||
Main.tile[i, j].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[i, j].halfBrick(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,12 +60,12 @@ namespace CalamityMod.Tiles.Abyss
|
||||
bool flag13 = false;
|
||||
for (int num52 = j; num52 > j - 10; j--)
|
||||
{
|
||||
if (Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = false;
|
||||
break;
|
||||
}
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = true;
|
||||
break;
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
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].active(true);
|
||||
Main.tile[num53, num54].Get<TileWallWireStateData>().HasTile = true;
|
||||
WorldGen.SquareTileFrame(num53, num54, true);
|
||||
WorldGen.SquareTileFrame(num53, num54 - 1, true);
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
if (t.LiquidAmount <= 0)
|
||||
{
|
||||
t.LiquidAmount = 255;
|
||||
t.LiquidType = LiquidID.Water;
|
||||
t.Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,12 +59,12 @@ namespace CalamityMod.Tiles.Abyss
|
||||
bool flag13 = false;
|
||||
for (int num52 = j; num52 > j - 10; j--)
|
||||
{
|
||||
if (Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = false;
|
||||
break;
|
||||
}
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].bottomSlope())
|
||||
if (Main.tile[i, num52].HasTile && !Main.tile[i, num52].BottomSlope)
|
||||
{
|
||||
flag13 = true;
|
||||
break;
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
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].active(true);
|
||||
Main.tile[num53, num54].Get<TileWallWireStateData>().HasTile = true;
|
||||
WorldGen.SquareTileFrame(num53, num54, true);
|
||||
WorldGen.SquareTileFrame(num53, num54 - 1, true);
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
|
||||
@@ -233,7 +233,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Color drawColour = GetDrawColour(i, j, new Color(25, 25, 25, 25));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(GlowTexture, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.Tiles
|
||||
Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Tiles.Crags
|
||||
{
|
||||
zero = Vector2.Zero;
|
||||
}
|
||||
if (tile.slope() == (byte)0 && !tile.IsHalfBlock)
|
||||
if (tile.Slope == (byte)0 && !tile.IsHalfBlock)
|
||||
Main.spriteBatch.Draw(sprite, new Vector2((float)(i * 16 - (int)Main.screenPosition.X), (float)(j * 16 - (int)Main.screenPosition.Y)) + zero, new Rectangle(tile.frameX + frameXOffset, tile.frameY + frameYOffset, 16, 16), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (tile.IsHalfBlock)
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace CalamityMod.Tiles.Crags
|
||||
}
|
||||
else
|
||||
{
|
||||
byte num9 = tile.slope();
|
||||
byte num9 = tile.Slope;
|
||||
for (int index4 = 0; index4 < 8; ++index4)
|
||||
{
|
||||
int width2 = index4 << 1;
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + screenOffset;
|
||||
Color drawColor = charger?.LightColor ?? Color.Red;
|
||||
|
||||
if (!t.IsHalfBlock && t.slope() == 0)
|
||||
if (!t.IsHalfBlock && t.Slope == 0)
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset, new Rectangle?(new Rectangle(xFrame, yFrame, 18, 18)), drawColor, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (t.IsHalfBlock)
|
||||
Main.spriteBatch.Draw(glowmask, drawOffset + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xFrame, yFrame, 18, 8)), drawColor, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + offset;
|
||||
Color drawColor = Lighting.GetColor(i, j);
|
||||
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(tileTexture, drawOffset, new Rectangle(xPos, yPos, 16, 16), drawColor, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(tileTexture, drawOffset + Vector2.UnitY * 8f, new Rectangle(xPos, yPos, 16, 16), drawColor, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -139,7 +139,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawOffset = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + offset;
|
||||
Color drawColor = Lighting.GetColor(i, j);
|
||||
|
||||
if (!t.IsHalfBlock && t.slope() == 0)
|
||||
if (!t.IsHalfBlock && t.Slope == 0)
|
||||
spriteBatch.Draw(tex, drawOffset, new Rectangle(frameXPos, frameYPos, 16, 16), drawColor, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (t.IsHalfBlock)
|
||||
spriteBatch.Draw(tex, drawOffset + Vector2.UnitY * 8f, new Rectangle(frameXPos, frameYPos, 16, 16), drawColor, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -169,7 +169,7 @@ namespace CalamityMod.Tiles.DraedonSummoner
|
||||
Color drawColor = Lighting.GetColor(i, j);
|
||||
Rectangle frame = new Rectangle(frameXPos, frameYPos, 16, 16);
|
||||
|
||||
if ((!t.IsHalfBlock && t.slope() == 0) || t.IsHalfBlock)
|
||||
if ((!t.IsHalfBlock && t.Slope == 0) || t.IsHalfBlock)
|
||||
{
|
||||
spriteBatch.Draw(TileTexture, drawPosition, frame, drawColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.FurnitureAshen
|
||||
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];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite
|
||||
Color drawColour = GetDrawColour(i, j, Color.White);
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffset;
|
||||
|
||||
if (!tile.IsHalfBlock && tile.slope() == 0)
|
||||
if (!tile.IsHalfBlock && tile.Slope == 0)
|
||||
{
|
||||
spriteBatch.Draw(GlowTexture, drawPosition, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest;
|
||||
Color drawColour = Color.White;
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
else if (trackTile.IsHalfBlock)
|
||||
spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate
|
||||
Color drawColour = GetDrawColour(i, j, new Color(128, 128, 128, 128));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
Color drawColour = GetDrawColour(i, j, new Color(25, 25, 25, 25));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
Color drawColour = GetDrawColour(i, j, new Color(128, 128, 128, 128));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.FurnitureStratus
|
||||
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;
|
||||
if (!(trackTile.IsHalfBlock && trackTile.slope() == 0))
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.FurnitureStratus
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStratus/StratusPlatformGlow");
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + (Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!(trackTile.IsHalfBlock && trackTile.slope() == 0))
|
||||
if (!(trackTile.IsHalfBlock && trackTile.Slope == 0))
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
|
||||
else if (trackTile.IsHalfBlock)
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Tiles.FurnitureStratus
|
||||
Texture2D glowmask = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureStratus/StratusStarPlatformGlow");
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + (Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!(trackTile.IsHalfBlock && trackTile.slope() == 0))
|
||||
if (!(trackTile.IsHalfBlock && trackTile.Slope == 0))
|
||||
spriteBatch.Draw(glowmask, drawPosition, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
|
||||
else if (trackTile.IsHalfBlock)
|
||||
|
||||
@@ -222,7 +222,7 @@ namespace CalamityMod.Tiles.FurnitureVoid
|
||||
Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace CalamityMod.Tiles.FurnitureVoid
|
||||
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)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.Ores
|
||||
if (Main.tile[i, j].LiquidAmount <= 0)
|
||||
{
|
||||
Main.tile[i, j].LiquidAmount = 255;
|
||||
Main.tile[i, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
if (Main.gamePaused)
|
||||
@@ -92,7 +92,7 @@ namespace CalamityMod.Tiles.Ores
|
||||
Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
double num6 = Main.time * 0.08;
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(GlowTexture, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(GlowTexture, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(GlowTexture, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(GlowTexture, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace CalamityMod.Tiles.Plates
|
||||
//Color drawColour = GetDrawColour(i, j, new Color(50, 50, 50, 50));
|
||||
|
||||
Tile trackTile = Main.tile[i, j];
|
||||
if (!trackTile.IsHalfBlock && trackTile.slope() == 0)
|
||||
if (!trackTile.IsHalfBlock && trackTile.Slope == 0)
|
||||
{
|
||||
Main.spriteBatch.Draw(GlowTexture, drawOffset, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
@@ -50,10 +50,10 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
|
||||
public override bool CanPlace(int i, int j)
|
||||
{
|
||||
if ((Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].IsHalfBlock && Main.tile[i, j + 1].HasTile) ||
|
||||
(Main.tile[i, j - 1].slope() == 0 && !Main.tile[i, j - 1].IsHalfBlock && Main.tile[i, j - 1].HasTile) ||
|
||||
(Main.tile[i + 1, j].slope() == 0 && !Main.tile[i + 1, j].IsHalfBlock && Main.tile[i + 1, j].HasTile) ||
|
||||
(Main.tile[i - 1, j].slope() == 0 && !Main.tile[i - 1, j].IsHalfBlock && Main.tile[i - 1, j].HasTile))
|
||||
if ((Main.tile[i, j + 1].Slope == 0 && !Main.tile[i, j + 1].IsHalfBlock && Main.tile[i, j + 1].HasTile) ||
|
||||
(Main.tile[i, j - 1].Slope == 0 && !Main.tile[i, j - 1].IsHalfBlock && Main.tile[i, j - 1].HasTile) ||
|
||||
(Main.tile[i + 1, j].Slope == 0 && !Main.tile[i + 1, j].IsHalfBlock && Main.tile[i + 1, j].HasTile) ||
|
||||
(Main.tile[i - 1, j].Slope == 0 && !Main.tile[i - 1, j].IsHalfBlock && Main.tile[i - 1, j].HasTile))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
@@ -61,19 +61,19 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
|
||||
public override void PlaceInWorld(int i, int j, Item item)
|
||||
{
|
||||
if (Main.tile[i, j + 1].HasTile && Main.tileSolid[Main.tile[i, j + 1].TileType] && Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].IsHalfBlock)
|
||||
if (Main.tile[i, j + 1].HasTile && Main.tileSolid[Main.tile[i, j + 1].TileType] && Main.tile[i, j + 1].Slope == 0 && !Main.tile[i, j + 1].IsHalfBlock)
|
||||
{
|
||||
Main.tile[i, j].TileFrameY = (short)(0 * 18);
|
||||
}
|
||||
else if (Main.tile[i, j - 1].HasTile && Main.tileSolid[Main.tile[i, j - 1].TileType] && Main.tile[i, j - 1].slope() == 0 && !Main.tile[i, j - 1].IsHalfBlock)
|
||||
else if (Main.tile[i, j - 1].HasTile && Main.tileSolid[Main.tile[i, j - 1].TileType] && Main.tile[i, j - 1].Slope == 0 && !Main.tile[i, j - 1].IsHalfBlock)
|
||||
{
|
||||
Main.tile[i, j].TileFrameY = (short)(1 * 18);
|
||||
}
|
||||
else if (Main.tile[i + 1, j].HasTile && Main.tileSolid[Main.tile[i + 1, j].TileType] && Main.tile[i + 1, j].slope() == 0 && !Main.tile[i + 1, j].IsHalfBlock)
|
||||
else if (Main.tile[i + 1, j].HasTile && Main.tileSolid[Main.tile[i + 1, j].TileType] && Main.tile[i + 1, j].Slope == 0 && !Main.tile[i + 1, j].IsHalfBlock)
|
||||
{
|
||||
Main.tile[i, j].TileFrameY = (short)(2 * 18);
|
||||
}
|
||||
else if (Main.tile[i - 1, j].HasTile && Main.tileSolid[Main.tile[i - 1, j].TileType] && Main.tile[i - 1, j].slope() == 0 && !Main.tile[i - 1, j].IsHalfBlock)
|
||||
else if (Main.tile[i - 1, j].HasTile && Main.tileSolid[Main.tile[i - 1, j].TileType] && Main.tile[i - 1, j].Slope == 0 && !Main.tile[i - 1, j].IsHalfBlock)
|
||||
{
|
||||
Main.tile[i, j].TileFrameY = (short)(3 * 18);
|
||||
}
|
||||
|
||||
+241
-328
File diff suppressed because it is too large.
Load diff
@@ -1,4 +1,4 @@
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Walls
|
||||
if (Main.tile[i, j].LiquidAmount <= 0 && j < Main.maxTilesY - 205)
|
||||
{
|
||||
Main.tile[i, j].LiquidAmount = 255;
|
||||
Main.tile[i, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Walls
|
||||
if (Main.tile[i, j].LiquidAmount <= 0)
|
||||
{
|
||||
Main.tile[i, j].LiquidAmount = 255;
|
||||
Main.tile[i, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Walls
|
||||
if (Main.tile[i, j].LiquidAmount <= 0)
|
||||
{
|
||||
Main.tile[i, j].LiquidAmount = 255;
|
||||
Main.tile[i, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Walls
|
||||
if (Main.tile[i, j].LiquidAmount <= 0)
|
||||
{
|
||||
Main.tile[i, j].LiquidAmount = 255;
|
||||
Main.tile[i, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Walls
|
||||
if (Main.tile[i, j].LiquidAmount <= 0 && j < Main.maxTilesY - 205)
|
||||
{
|
||||
Main.tile[i, j].LiquidAmount = 255;
|
||||
Main.tile[i, j].LiquidType = LiquidID.Water;
|
||||
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+23
-23
@@ -66,7 +66,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
else if (!tile.HasTile)
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.WallType = (ushort)ModContent.WallType<AbyssGravelWall>();
|
||||
tile.TileType = (ushort)ModContent.TileType<AbyssGravel>();
|
||||
}
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
else if (!tile.HasTile)
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.WallType = (ushort)ModContent.WallType<AbyssGravelWall>();
|
||||
tile.TileType = (ushort)ModContent.TileType<AbyssGravel>();
|
||||
}
|
||||
@@ -111,7 +111,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
else if (!tile.HasTile)
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
if (abyssIndex2 > (rockLayer + y * 0.262))
|
||||
{
|
||||
tile.TileType = (ushort)ModContent.TileType<Voidstone>();
|
||||
@@ -162,7 +162,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
else if (!tile.HasTile)
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.WallType = (ushort)ModContent.WallType<AbyssGravelWall>();
|
||||
tile.TileType = (ushort)ModContent.TileType<AbyssGravel>();
|
||||
}
|
||||
@@ -179,7 +179,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
else if (!tile.HasTile)
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.WallType = (ushort)ModContent.WallType<AbyssGravelWall>();
|
||||
tile.TileType = (ushort)ModContent.TileType<AbyssGravel>();
|
||||
}
|
||||
@@ -207,7 +207,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
else if (!tile.HasTile)
|
||||
{
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
if (abyssIndex2 > (rockLayer + y * 0.262))
|
||||
{
|
||||
tile.TileType = (ushort)ModContent.TileType<Voidstone>();
|
||||
@@ -448,7 +448,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
num6 = l;
|
||||
}
|
||||
Main.tile[k, l].active(true);
|
||||
Main.tile[k, l].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[k, l].TileType = (ushort)(isVoid ? ModContent.TileType<Voidstone>() : ModContent.TileType<AbyssGravel>());
|
||||
CalamityUtils.SafeSquareTileFrame(k, l, true);
|
||||
}
|
||||
@@ -500,7 +500,7 @@ namespace CalamityMod.World
|
||||
float num18 = (float)(Math.Abs(num17 - num14) * 2);
|
||||
if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num15 + WorldGen.genRand.Next(2)))
|
||||
{
|
||||
Main.tile[n, num17].active(true);
|
||||
Main.tile[n, num17].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[n, num17].TileType = (ushort)num16;
|
||||
CalamityUtils.SafeSquareTileFrame(n, num17, true);
|
||||
}
|
||||
@@ -532,7 +532,7 @@ namespace CalamityMod.World
|
||||
float num18 = (float)(Math.Abs(num17 - num14) * 2);
|
||||
if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num150 + WorldGen.genRand.Next(2)))
|
||||
{
|
||||
Main.tile[n, num17].active(true);
|
||||
Main.tile[n, num17].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[n, num17].TileType = (ushort)num16;
|
||||
CalamityUtils.SafeSquareTileFrame(n, num17, true);
|
||||
}
|
||||
@@ -652,23 +652,23 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (Main.tile[num37, num35].TileType == (ushort)(isVoid ? ModContent.TileType<Voidstone>() : ModContent.TileType<AbyssGravel>()))
|
||||
{
|
||||
Main.tile[num37, num35].active(false);
|
||||
Main.tile[num37, num35].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num37, num35].LiquidAmount = 255;
|
||||
Main.tile[num37, num35].LiquidType = LiquidID.Water;
|
||||
Main.tile[num37, num35].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
CalamityUtils.SafeSquareTileFrame(num34, num35, true);
|
||||
}
|
||||
if (Main.tile[num37, num35 + 1].TileType == (ushort)(isVoid ? ModContent.TileType<Voidstone>() : ModContent.TileType<AbyssGravel>()))
|
||||
{
|
||||
Main.tile[num37, num35 + 1].active(false);
|
||||
Main.tile[num37, num35 + 1].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num37, num35 + 1].LiquidAmount = 255;
|
||||
Main.tile[num37, num35 + 1].LiquidType = LiquidID.Water;
|
||||
Main.tile[num37, num35 + 1].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
CalamityUtils.SafeSquareTileFrame(num34, num35 + 1, true);
|
||||
}
|
||||
if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].TileType == (ushort)(isVoid ? ModContent.TileType<Voidstone>() : ModContent.TileType<AbyssGravel>()))
|
||||
{
|
||||
Main.tile[num37, num35 + 2].active(false);
|
||||
Main.tile[num37, num35 + 2].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num37, num35 + 2].LiquidAmount = 255;
|
||||
Main.tile[num37, num35 + 2].LiquidType = LiquidID.Water;
|
||||
Main.tile[num37, num35 + 2].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
CalamityUtils.SafeSquareTileFrame(num34, num35 + 2, true);
|
||||
}
|
||||
}
|
||||
@@ -677,7 +677,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
Main.tile[num34, num35].LiquidAmount = 255;
|
||||
}
|
||||
Main.tile[num34, num35].LiquidType = LiquidID.Water;
|
||||
Main.tile[num34, num35].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
CalamityUtils.SafeSquareTileFrame(num34, num35, true);
|
||||
}
|
||||
}
|
||||
@@ -731,11 +731,11 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (m != num6 - 1 || (l != num4 && l != num5))
|
||||
{
|
||||
Main.tile[l, m].active(true);
|
||||
Main.tile[l, m].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[l, m].TileType = type;
|
||||
Main.tile[l, m].WallType = wall;
|
||||
Main.tile[l, m].halfBrick(false);
|
||||
Main.tile[l, m].slope(0);
|
||||
Main.tile[l, m].Get<TileWallWireStateData>().IsHalfBlock = false;
|
||||
Main.tile[l, m].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -765,7 +765,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].WallType == wall)
|
||||
{
|
||||
Main.tile[n, num8].active(false);
|
||||
Main.tile[n, num8].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -773,9 +773,9 @@ namespace CalamityMod.World
|
||||
int num10 = (int)vector.Y;
|
||||
for (int num11 = num9 - 2; num11 <= num9 + 2; num11++)
|
||||
{
|
||||
Main.tile[num11, num10].active(false);
|
||||
Main.tile[num11, num10 - 1].active(false);
|
||||
Main.tile[num11, num10 - 2].active(false);
|
||||
Main.tile[num11, num10].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num11, num10 - 1].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num11, num10 - 2].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
switch (itemChoice)
|
||||
{
|
||||
|
||||
@@ -250,7 +250,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (!Main.tileSolid[(int)Main.tile[num2, num3].TileType])
|
||||
{
|
||||
Main.tile[num2, num3].active(false);
|
||||
Main.tile[num2, num3].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
Main.tile[num2, num3].TileType = (ushort)ModContent.TileType<AstralOre>();
|
||||
}
|
||||
@@ -271,7 +271,7 @@ namespace CalamityMod.World
|
||||
if ((double)num11 < (double)num * 0.8 + (double)rand.Next(-3, 4))
|
||||
{
|
||||
if (Main.tile[num7, num8] != null)
|
||||
Main.tile[num7, num8].active(false);
|
||||
Main.tile[num7, num8].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -301,11 +301,11 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (!WorldGen.SolidTile(num12 - 1, num13) && !WorldGen.SolidTile(num12 + 1, num13) && !WorldGen.SolidTile(num12, num13 - 1) && !WorldGen.SolidTile(num12, num13 + 1))
|
||||
{
|
||||
Main.tile[num12, num13].active(false);
|
||||
Main.tile[num12, num13].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
else if ((Main.tile[num12, num13].IsHalfBlock || Main.tile[num12 - 1, num13].topSlope()) && !WorldGen.SolidTile(num12, num13 + 1))
|
||||
{
|
||||
Main.tile[num12, num13].active(false);
|
||||
Main.tile[num12, num13].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
}
|
||||
WorldGen.SquareTileFrame(num12, num13, true);
|
||||
|
||||
+23
-23
@@ -158,10 +158,10 @@ namespace CalamityMod.World
|
||||
}
|
||||
for (int roomPositionY = roomTop; roomPositionY < roomBottom; roomPositionY++)
|
||||
{
|
||||
Main.tile[roomPositionX, roomPositionY].active(true);
|
||||
Main.tile[roomPositionX, roomPositionY].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[roomPositionX, roomPositionY].TileType = TileID.LihzahrdBrick;
|
||||
Main.tile[roomPositionX, roomPositionY].LiquidAmount = 0;
|
||||
Main.tile[roomPositionX, roomPositionY].slope(0);
|
||||
Main.tile[roomPositionX, roomPositionY].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[roomPositionX, roomPositionY].halfBrick(false);
|
||||
}
|
||||
}
|
||||
@@ -178,10 +178,10 @@ namespace CalamityMod.World
|
||||
{
|
||||
for (int roomPositionY = roomBounds[i].Y; roomPositionY < roomBounds[i].Y + roomBounds[i].Height; roomPositionY++)
|
||||
{
|
||||
Main.tile[roomPositionX, roomPositionY].active(true);
|
||||
Main.tile[roomPositionX, roomPositionY].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[roomPositionX, roomPositionY].TileType = TileID.LihzahrdBrick;
|
||||
Main.tile[roomPositionX, roomPositionY].LiquidAmount = 0;
|
||||
Main.tile[roomPositionX, roomPositionY].slope(0);
|
||||
Main.tile[roomPositionX, roomPositionY].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[roomPositionX, roomPositionY].halfBrick(false);
|
||||
}
|
||||
}
|
||||
@@ -346,7 +346,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
if (Main.tile[(int)endPathPosition.X, dy].HasTile && Main.tile[(int)endPathPosition.X, dy].TileType == TileID.LihzahrdBrick)
|
||||
{
|
||||
Main.tile[(int)endPathPosition.X, dy].active(false);
|
||||
Main.tile[(int)endPathPosition.X, dy].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[(int)endPathPosition.X, dy].WallType = WallID.LihzahrdBrickUnsafe;
|
||||
}
|
||||
dy++;
|
||||
@@ -371,10 +371,10 @@ namespace CalamityMod.World
|
||||
{
|
||||
for (int dy = doorTop; dy <= doorPositionY; dy++)
|
||||
{
|
||||
Main.tile[dx, dy].active(true);
|
||||
Main.tile[dx, dy].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[dx, dy].TileType = TileID.LihzahrdBrick;
|
||||
Main.tile[dx, dy].LiquidAmount = 0;
|
||||
Main.tile[dx, dy].slope(0);
|
||||
Main.tile[dx, dy].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[dx, dy].halfBrick(false);
|
||||
}
|
||||
}
|
||||
@@ -382,7 +382,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
for (int dy = doorPositionY - 1; dy < doorPositionY + 3; dy++)
|
||||
{
|
||||
Main.tile[dx, dy].active(false);
|
||||
Main.tile[dx, dy].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[dx, dy].WallType = WallID.LihzahrdBrickUnsafe;
|
||||
}
|
||||
}
|
||||
@@ -390,10 +390,10 @@ namespace CalamityMod.World
|
||||
{
|
||||
for (int dy = doorPositionY - 5; dy <= doorPositionY + 8; dy++)
|
||||
{
|
||||
Main.tile[dx, dy].active(true);
|
||||
Main.tile[dx, dy].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[dx, dy].TileType = TileID.LihzahrdBrick;
|
||||
Main.tile[dx, dy].LiquidAmount = 0;
|
||||
Main.tile[dx, dy].slope(0);
|
||||
Main.tile[dx, dy].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[dx, dy].halfBrick(false);
|
||||
}
|
||||
}
|
||||
@@ -401,7 +401,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
for (int dy = doorPositionY; dy < doorPositionY + 3; dy++)
|
||||
{
|
||||
Main.tile[dx, dy].active(false);
|
||||
Main.tile[dx, dy].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[dx, dy].WallType = WallID.LihzahrdBrickUnsafe;
|
||||
}
|
||||
}
|
||||
@@ -496,12 +496,12 @@ namespace CalamityMod.World
|
||||
if (yMoveDirection == 0)
|
||||
{
|
||||
Main.tile[dx, dy - 1].TileType = TileID.WoodenSpikes;
|
||||
Main.tile[dx, dy - 1].active(true);
|
||||
Main.tile[dx, dy - 1].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Main.tile[dx, dy + 1].TileType = TileID.WoodenSpikes;
|
||||
Main.tile[dx, dy + 1].active(true);
|
||||
Main.tile[dx, dy + 1].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
yMoveDirection++;
|
||||
if (yMoveDirection > 1)
|
||||
@@ -553,12 +553,12 @@ namespace CalamityMod.World
|
||||
if (yMoveDirection == 0)
|
||||
{
|
||||
Main.tile[dx - 1, dy].TileType = TileID.WoodenSpikes;
|
||||
Main.tile[dx - 1, dy].active(true);
|
||||
Main.tile[dx - 1, dy].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Main.tile[dx + 1, dy].TileType = TileID.WoodenSpikes;
|
||||
Main.tile[dx + 1, dy].active(true);
|
||||
Main.tile[dx + 1, dy].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
yMoveDirection++;
|
||||
if (yMoveDirection > 1)
|
||||
@@ -635,7 +635,7 @@ namespace CalamityMod.World
|
||||
|
||||
if (dx >= offsettedRoomLeft && (dx < offsettedRoomRight & dy >= offsettedRoomTop) && dy <= offsettedRoomBottom)
|
||||
{
|
||||
Main.tile[dx, dy].active(false);
|
||||
Main.tile[dx, dy].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[dx, dy].LiquidAmount = 0; // Apparently this can indeed happen, and it can interfere with furniture placement.
|
||||
Main.tile[dx, dy].WallType = WallID.LihzahrdBrickUnsafe;
|
||||
}
|
||||
@@ -664,7 +664,7 @@ namespace CalamityMod.World
|
||||
|
||||
if (dx >= offsettedRoomLeft && (dx < offsettedRoomRight & dy >= offsettedRoomTop) && dy <= offsettedRoomBottom)
|
||||
{
|
||||
Main.tile[dx, dy].active(false);
|
||||
Main.tile[dx, dy].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[dx, dy].LiquidAmount = 0; // Apparently this can indeed happen, and it can interfere with furniture placement.
|
||||
Main.tile[dx, dy].WallType = WallID.LihzahrdBrickUnsafe;
|
||||
}
|
||||
@@ -679,7 +679,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
for (int dy = roomBounds.Top; dy < roomBounds.Bottom; dy++)
|
||||
{
|
||||
Main.tile[dx, dy].active(false);
|
||||
Main.tile[dx, dy].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[dx, dy].LiquidAmount = 0; // Apparently this can indeed happen, and it can interfere with furniture placement.
|
||||
Main.tile[dx, dy].WallType = WallID.LihzahrdBrickUnsafe;
|
||||
}
|
||||
@@ -709,10 +709,10 @@ namespace CalamityMod.World
|
||||
|
||||
for (int y = roomBottom - height; y <= roomBottom; y++)
|
||||
{
|
||||
Main.tile[roomCenterX - dx, y].active(true);
|
||||
Main.tile[roomCenterX - dx, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[roomCenterX - dx, y].TileType = TileID.LihzahrdBrick;
|
||||
|
||||
Main.tile[roomCenterX + dx, y].active(true);
|
||||
Main.tile[roomCenterX + dx, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[roomCenterX + dx, y].TileType = TileID.LihzahrdBrick;
|
||||
}
|
||||
}
|
||||
@@ -904,15 +904,15 @@ namespace CalamityMod.World
|
||||
{
|
||||
int framedAlterPositionX = alterPositionX + i;
|
||||
int framedAlterPositionY = alterPositionY + j;
|
||||
Main.tile[framedAlterPositionX, framedAlterPositionY].active(true);
|
||||
Main.tile[framedAlterPositionX, framedAlterPositionY].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[framedAlterPositionX, framedAlterPositionY].TileType = TileID.LihzahrdAltar;
|
||||
Main.tile[framedAlterPositionX, framedAlterPositionY].TileFrameX = (short)(i * 18);
|
||||
Main.tile[framedAlterPositionX, framedAlterPositionY].TileFrameY = (short)(j * 18);
|
||||
}
|
||||
|
||||
// Ensure that the tiles below the altar are active and valid.
|
||||
Main.tile[i, alterPositionY + 2].active(true);
|
||||
Main.tile[i, alterPositionY + 2].slope(0);
|
||||
Main.tile[i, alterPositionY + 2].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[i, alterPositionY + 2].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[i, alterPositionY + 2].halfBrick(false);
|
||||
Main.tile[i, alterPositionY + 2].TileType = TileID.LihzahrdBrick;
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace CalamityMod.World
|
||||
for (int dx = -1; dx < 2; dx++)
|
||||
{
|
||||
for (int dy = -1; dy < 2; dy++)
|
||||
Main.tile[x + dx, y + dy].active(false);
|
||||
Main.tile[x + dx, y + dy].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
|
||||
WorldGen.PlaceTile(x, y + 1, ModContent.TileType<RoxTile>());
|
||||
@@ -295,7 +295,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
num6 = l;
|
||||
}
|
||||
Main.tile[k, l].active(true);
|
||||
Main.tile[k, l].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[k, l].TileType = (ushort)ModContent.TileType<BrimstoneSlag>();
|
||||
WorldGen.SquareTileFrame(k, l, true);
|
||||
}
|
||||
@@ -349,7 +349,7 @@ namespace CalamityMod.World
|
||||
float num18 = (float)(Math.Abs(num17 - num14) * 2);
|
||||
if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num15 + WorldGen.genRand.Next(2)))
|
||||
{
|
||||
Main.tile[n, num17].active(true);
|
||||
Main.tile[n, num17].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[n, num17].TileType = (ushort)num16;
|
||||
WorldGen.SquareTileFrame(n, num17, true);
|
||||
}
|
||||
@@ -444,23 +444,23 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (Main.tile[num37, num35].TileType == (ushort)ModContent.TileType<BrimstoneSlag>())
|
||||
{
|
||||
Main.tile[num37, num35].active(false);
|
||||
Main.tile[num37, num35].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num37, num35].LiquidAmount = 255;
|
||||
Main.tile[num37, num35].LiquidType = LiquidID.Water;
|
||||
Main.tile[num37, num35].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
WorldGen.SquareTileFrame(num34, num35, true);
|
||||
}
|
||||
if (Main.tile[num37, num35 + 1].TileType == (ushort)ModContent.TileType<BrimstoneSlag>())
|
||||
{
|
||||
Main.tile[num37, num35 + 1].active(false);
|
||||
Main.tile[num37, num35 + 1].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num37, num35 + 1].LiquidAmount = 255;
|
||||
Main.tile[num37, num35 + 1].LiquidType = LiquidID.Water;
|
||||
Main.tile[num37, num35 + 1].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
WorldGen.SquareTileFrame(num34, num35 + 1, true);
|
||||
}
|
||||
if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].TileType == (ushort)ModContent.TileType<BrimstoneSlag>())
|
||||
{
|
||||
Main.tile[num37, num35 + 2].active(false);
|
||||
Main.tile[num37, num35 + 2].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num37, num35 + 2].LiquidAmount = 255;
|
||||
Main.tile[num37, num35 + 2].LiquidType = LiquidID.Water;
|
||||
Main.tile[num37, num35 + 2].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
WorldGen.SquareTileFrame(num34, num35 + 2, true);
|
||||
}
|
||||
}
|
||||
@@ -469,7 +469,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
Main.tile[num34, num35].LiquidAmount = 255;
|
||||
}
|
||||
Main.tile[num34, num35].LiquidType = LiquidID.Water;
|
||||
Main.tile[num34, num35].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
WorldGen.SquareTileFrame(num34, num35, true);
|
||||
}
|
||||
}
|
||||
@@ -525,12 +525,12 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (m != num6 - 1 || (l != num4 && l != num5))
|
||||
{
|
||||
Main.tile[l, m].active(true);
|
||||
Main.tile[l, m].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[l, m].LiquidAmount = 0;
|
||||
Main.tile[l, m].TileType = type;
|
||||
Main.tile[l, m].WallType = 0;
|
||||
Main.tile[l, m].halfBrick(false);
|
||||
Main.tile[l, m].slope(0);
|
||||
Main.tile[l, m].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -560,7 +560,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].WallType == 0)
|
||||
{
|
||||
Main.tile[n, num8].active(false);
|
||||
Main.tile[n, num8].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[n, num8].WallType = wall;
|
||||
}
|
||||
}
|
||||
@@ -569,20 +569,20 @@ namespace CalamityMod.World
|
||||
int num10 = (int)vector.Y;
|
||||
for (int num11 = num9 - 2; num11 <= num9 + 2; num11++)
|
||||
{
|
||||
Main.tile[num11, num10].active(false);
|
||||
Main.tile[num11, num10 - 1].active(false);
|
||||
Main.tile[num11, num10 - 2].active(false);
|
||||
Main.tile[num11, num10].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num11, num10 - 1].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num11, num10 - 2].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
WorldGen.PlaceTile(num9, num10, ModContent.TileType<AncientDoorClosed>(), true, false, -1); //door
|
||||
num9 = i + (num2 + 1) * -num - num;
|
||||
for (int num12 = num6; num12 <= num7 + 1; num12++)
|
||||
{
|
||||
Main.tile[num9, num12].active(true);
|
||||
Main.tile[num9, num12].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[num9, num12].LiquidAmount = 0;
|
||||
Main.tile[num9, num12].TileType = type;
|
||||
Main.tile[num9, num12].WallType = 0;
|
||||
Main.tile[num9, num12].halfBrick(false);
|
||||
Main.tile[num9, num12].slope(0);
|
||||
Main.tile[num9, num12].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
}
|
||||
WorldGen.AddBuriedChest(i, num10 - 3, item, false, 4); //chest
|
||||
int num22 = i + (num2 / 2 + 1) * -num;
|
||||
@@ -729,13 +729,13 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (ocean)
|
||||
{
|
||||
Main.tile[k, l].active(false);
|
||||
Main.tile[k, l].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[k, l].LiquidAmount = 255;
|
||||
Main.tile[k, l].LiquidType = LiquidID.Water;
|
||||
Main.tile[k, l].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
else
|
||||
{
|
||||
Main.tile[k, l].active(false);
|
||||
Main.tile[k, l].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[k, l].LiquidAmount = 255;
|
||||
Main.tile[k, l].lava(true);
|
||||
}
|
||||
@@ -785,16 +785,16 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (n > j + WorldGen.genRand.Next(7, 16))
|
||||
{
|
||||
Main.tile[m, n].active(false);
|
||||
Main.tile[m, n].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
if (steps <= num2)
|
||||
{
|
||||
Main.tile[m, n].active(false);
|
||||
Main.tile[m, n].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
if (ocean)
|
||||
{
|
||||
Main.tile[m, n].LiquidAmount = 255;
|
||||
Main.tile[m, n].LiquidType = LiquidID.Water;
|
||||
Main.tile[m, n].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -813,7 +813,7 @@ namespace CalamityMod.World
|
||||
if (ocean)
|
||||
{
|
||||
Main.tile[num11, num12].LiquidAmount = 255;
|
||||
Main.tile[num11, num12].LiquidType = LiquidID.Water;
|
||||
Main.tile[num11, num12].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -822,7 +822,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
if (steps <= num2)
|
||||
{
|
||||
Main.tile[num11, num12].active(false);
|
||||
Main.tile[num11, num12].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,12 +141,12 @@ namespace CalamityMod.World.Planets
|
||||
List<ushort> walls = ignoreWalls.ToList();
|
||||
while (!_tiles[x, startY].HasTile && !walls.Contains(_tiles[x, startY].wall))
|
||||
{
|
||||
_tiles[x, startY].active(true);
|
||||
_tiles[x, startY].Get<TileWallWireStateData>().HasTile = true;
|
||||
_tiles[x, startY].type = beamType;
|
||||
startY++;
|
||||
if (Vector2.Distance(planetCenter, new Vector2(x * 16 + 8, startY * 16 + 8)) > radius * 16f - 64)
|
||||
{
|
||||
_tiles[x, startY].active(true);
|
||||
_tiles[x, startY].Get<TileWallWireStateData>().HasTile = true;
|
||||
_tiles[x, startY].type = TileID.Stone;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace CalamityMod.World.Planets
|
||||
{
|
||||
for (int floorX = testX - 1; floorX <= testX + 1; floorX++)
|
||||
{
|
||||
_tiles[floorX, testY + 2].active(true);
|
||||
_tiles[floorX, testY + 2].Get<TileWallWireStateData>().HasTile = true;
|
||||
_tiles[floorX, testY + 2].type = TileID.Hive;
|
||||
WorldGen.SquareTileFrame(floorX, testY + 2);
|
||||
}
|
||||
@@ -150,9 +150,9 @@ namespace CalamityMod.World.Planets
|
||||
}
|
||||
}
|
||||
//PLACE TILES BENEATH CHEST, IN CASE
|
||||
_tiles[origin.X, chestY].active(true);
|
||||
_tiles[origin.X, chestY].Get<TileWallWireStateData>().HasTile = true;
|
||||
_tiles[origin.X, chestY].type = TileID.Mud;
|
||||
_tiles[origin.X + 1, chestY].active(true);
|
||||
_tiles[origin.X + 1, chestY].Get<TileWallWireStateData>().HasTile = true;
|
||||
_tiles[origin.X + 1, chestY].type = TileID.Mud;
|
||||
//Place chest
|
||||
int chestID = WorldGen.PlaceChest(origin.X, chestY - 1, 21, false, 17);
|
||||
|
||||
+14
-14
@@ -170,7 +170,7 @@ namespace CalamityMod.World
|
||||
if (y - YStart - 6 < wallBoundAtPosition(xRatio * MathHelper.TwoPi * 4f))
|
||||
Main.tile[trueX, y].WallType = WallID.None;
|
||||
|
||||
Main.tile[trueX, y].active(true);
|
||||
Main.tile[trueX, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -388,9 +388,9 @@ namespace CalamityMod.World
|
||||
for (int y2 = 0; y2 <= extraHeight; y2++)
|
||||
{
|
||||
Main.tile[x + dx, y + dy - y2].TileType = (ushort)ModContent.TileType<SulphurousSandNoWater>();
|
||||
Main.tile[x + dx, y + dy - y2].slope(0);
|
||||
Main.tile[x + dx, y + dy - y2].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[x + dx, y + dy - y2].halfBrick(false);
|
||||
Main.tile[x + dx, y + dy - y2].active(true);
|
||||
Main.tile[x + dx, y + dy - y2].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
if (dy == -2 && dx == treePosition)
|
||||
{
|
||||
@@ -536,7 +536,7 @@ namespace CalamityMod.World
|
||||
liquid = 255,
|
||||
wall = oldWall
|
||||
};
|
||||
Main.tile[trueX, y - dy].active(true);
|
||||
Main.tile[trueX, y - dy].Get<TileWallWireStateData>().HasTile = true;
|
||||
|
||||
if (Main.tile[trueX + 1, y - dy] is null)
|
||||
Main.tile[trueX + 1, y - dy] = new Tile();
|
||||
@@ -550,7 +550,7 @@ namespace CalamityMod.World
|
||||
liquid = 255,
|
||||
wall = oldWall
|
||||
};
|
||||
Main.tile[trueX + 1, y - dy].active(true);
|
||||
Main.tile[trueX + 1, y - dy].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
previousX = trueX;
|
||||
}
|
||||
@@ -623,7 +623,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
Main.tile[i, y + 1] = new Tile();
|
||||
}
|
||||
if (!Main.tile[i, y + 1].HasUnactuatedTile || Main.tile[i, y + 1].IsHalfBlock || Main.tile[i, y + 1].slope() != 0 || !Main.tileSolid[Main.tile[i, y + 1].TileType])
|
||||
if (!Main.tile[i, y + 1].HasUnactuatedTile || Main.tile[i, y + 1].IsHalfBlock || Main.tile[i, y + 1].Slope != 0 || !Main.tileSolid[Main.tile[i, y + 1].TileType])
|
||||
{
|
||||
canGenerate = false;
|
||||
}
|
||||
@@ -649,7 +649,7 @@ namespace CalamityMod.World
|
||||
type = type,
|
||||
frameY = (short)(dy * 18)
|
||||
};
|
||||
Main.tile[x, y + dy].active(true);
|
||||
Main.tile[x, y + dy].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
}
|
||||
public static void PlaceStalacmite(int x, int y, int height, ushort type)
|
||||
@@ -663,7 +663,7 @@ namespace CalamityMod.World
|
||||
frameY = (short)(height * 18 - dy * 18),
|
||||
wall = oldWall
|
||||
};
|
||||
Main.tile[x, y - dy].active(true);
|
||||
Main.tile[x, y - dy].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -760,7 +760,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (Main.tile[trueX, y] is null)
|
||||
Main.tile[trueX, y] = new Tile();
|
||||
Main.tile[trueX, y].active(false);
|
||||
Main.tile[trueX, y].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
if (WallsForSulphSeaToDestroy.Contains(Main.tile[trueX, y].WallType))
|
||||
{
|
||||
@@ -832,7 +832,7 @@ namespace CalamityMod.World
|
||||
if (Main.tile[trueX, y].TileType == TileID.Trees)
|
||||
WorldGen.KillTile(trueX, y);
|
||||
else
|
||||
Main.tile[trueX, y].active(false);
|
||||
Main.tile[trueX, y].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
|
||||
else if (tileAtPosition.HasTile && ValidBeachCovertTiles.Contains(tileAtPosition.TileType))
|
||||
@@ -1002,7 +1002,7 @@ namespace CalamityMod.World
|
||||
}
|
||||
Tile tileAtPosition = Main.tile[i, trueStartingPositionY];
|
||||
Tile tileAbovePosition = Main.tile[i, trueStartingPositionY - 1];
|
||||
if (!tileAtPosition.HasTile || tileAtPosition.IsHalfBlock || tileAtPosition.slope() != 0)
|
||||
if (!tileAtPosition.HasTile || tileAtPosition.IsHalfBlock || tileAtPosition.Slope != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -1023,14 +1023,14 @@ namespace CalamityMod.World
|
||||
tileAtPosition = Main.tile[i, trueStartingPositionY - 1 - k];
|
||||
if (k == 0)
|
||||
{
|
||||
tileAtPosition.active(true);
|
||||
tileAtPosition.Get<TileWallWireStateData>().HasTile = true;
|
||||
tileAtPosition.TileType = TileID.PalmTree;
|
||||
tileAtPosition.TileFrameX = 66;
|
||||
tileAtPosition.TileFrameY = 0;
|
||||
}
|
||||
else if (k == treeHeight - 1)
|
||||
{
|
||||
tileAtPosition.active(true);
|
||||
tileAtPosition.Get<TileWallWireStateData>().HasTile = true;
|
||||
tileAtPosition.TileType = TileID.PalmTree;
|
||||
tileAtPosition.TileFrameX = (short)(22 * WorldGen.genRand.Next(4, 7));
|
||||
tileAtPosition.TileFrameY = frameY;
|
||||
@@ -1046,7 +1046,7 @@ namespace CalamityMod.World
|
||||
frameY += (short)(Math.Sign(frameYIdeal) * 2);
|
||||
}
|
||||
}
|
||||
tileAtPosition.active(true);
|
||||
tileAtPosition.Get<TileWallWireStateData>().HasTile = true;
|
||||
tileAtPosition.TileType = TileID.PalmTree;
|
||||
tileAtPosition.TileFrameX = (short)(22 * WorldGen.genRand.Next(0, 3));
|
||||
tileAtPosition.TileFrameY = frameY;
|
||||
|
||||
+14
-14
@@ -247,7 +247,7 @@ namespace CalamityMod.World
|
||||
if (num4 % 15 == 2)
|
||||
{
|
||||
tile.ResetToType((ushort)ModContent.TileType<Navystone>());
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
tile.LiquidAmount = 0;
|
||||
}
|
||||
Tile.SmoothSlope(num6, num7, true);
|
||||
@@ -259,7 +259,7 @@ namespace CalamityMod.World
|
||||
if (!flag || tile.HasTile)
|
||||
{
|
||||
tile.ResetToType((ushort)ModContent.TileType<Navystone>());
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
Tile.SmoothSlope(num6, num7, true);
|
||||
tile.LiquidAmount = 0;
|
||||
}
|
||||
@@ -270,7 +270,7 @@ namespace CalamityMod.World
|
||||
if (!flag || tile.HasTile)
|
||||
{
|
||||
tile.ResetToType((ushort)ModContent.TileType<EutrophicSand>());
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
Tile.SmoothSlope(num6, num7, true);
|
||||
tile.LiquidAmount = 0;
|
||||
}
|
||||
@@ -284,7 +284,7 @@ namespace CalamityMod.World
|
||||
if (tile.HasTile)
|
||||
{
|
||||
tile.ResetToType((ushort)ModContent.TileType<EutrophicSand>());
|
||||
tile.active(true);
|
||||
tile.Get<TileWallWireStateData>().HasTile = true;
|
||||
Tile.SmoothSlope(num6, num7, true);
|
||||
tile.WallType = (ushort)ModContent.WallType<EutrophicSandWall>();
|
||||
tile.LiquidAmount = 0;
|
||||
@@ -495,7 +495,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (flag3 ^ flag4)
|
||||
{
|
||||
if (tile2.slope() == 0 && !tile2.IsHalfBlock)
|
||||
if (tile2.Slope == 0 && !tile2.IsHalfBlock)
|
||||
{
|
||||
Tile tile3 = Main.tile[num5 + (flag3 ? -1 : 1), num6];
|
||||
tile3.TileType = (ushort)ModContent.TileType<SeaPrismCrystals>();
|
||||
@@ -508,12 +508,12 @@ namespace CalamityMod.World
|
||||
Main.tile[num5 + 1, num6].TileFrameY = (short)(3 * 18);
|
||||
}
|
||||
tile3.TileFrameX = (short)(WorldGen.genRand.Next(18) * 18);
|
||||
tile3.active(true);
|
||||
tile3.Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
}
|
||||
if (flag ^ flag2)
|
||||
{
|
||||
if (tile2.slope() == 0 && !tile2.IsHalfBlock)
|
||||
if (tile2.Slope == 0 && !tile2.IsHalfBlock)
|
||||
{
|
||||
Tile tile3 = Main.tile[num5, num6 + (flag ? -1 : 1)];
|
||||
tile3.TileType = (ushort)ModContent.TileType<SeaPrismCrystals>();
|
||||
@@ -526,7 +526,7 @@ namespace CalamityMod.World
|
||||
Main.tile[num5, num6 + 1].TileFrameY = (short)(1 * 18);
|
||||
}
|
||||
tile3.TileFrameX = (short)(WorldGen.genRand.Next(18) * 18);
|
||||
tile3.active(true);
|
||||
tile3.Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -625,7 +625,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
int num2 = WorldGen.genRand.Next(3) * 18;
|
||||
Main.tile[x, y].TileType = type;
|
||||
Main.tile[x, y].active(true);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[x, y].TileFrameX = (short)num2;
|
||||
Main.tile[x, y].TileFrameY = 72;
|
||||
}
|
||||
@@ -633,11 +633,11 @@ namespace CalamityMod.World
|
||||
{
|
||||
int num3 = WorldGen.genRand.Next(3) * 18;
|
||||
Main.tile[x, y].TileType = type;
|
||||
Main.tile[x, y].active(true);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[x, y].TileFrameX = (short)num3;
|
||||
Main.tile[x, y].TileFrameY = 0;
|
||||
Main.tile[x, y + 1].TileType = type;
|
||||
Main.tile[x, y + 1].active(true);
|
||||
Main.tile[x, y + 1].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[x, y + 1].TileFrameX = (short)num3;
|
||||
Main.tile[x, y + 1].TileFrameY = 18;
|
||||
}
|
||||
@@ -653,7 +653,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
int num13 = WorldGen.genRand.Next(3) * 18;
|
||||
Main.tile[x, y].TileType = type;
|
||||
Main.tile[x, y].active(true);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[x, y].TileFrameX = (short)num13;
|
||||
Main.tile[x, y].TileFrameY = 90;
|
||||
}
|
||||
@@ -661,11 +661,11 @@ namespace CalamityMod.World
|
||||
{
|
||||
int num14 = WorldGen.genRand.Next(3) * 18;
|
||||
Main.tile[x, y - 1].TileType = type;
|
||||
Main.tile[x, y - 1].active(true);
|
||||
Main.tile[x, y - 1].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[x, y - 1].TileFrameX = (short)num14;
|
||||
Main.tile[x, y - 1].TileFrameY = 36;
|
||||
Main.tile[x, y].TileType = type;
|
||||
Main.tile[x, y].active(true);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[x, y].TileFrameX = (short)num14;
|
||||
Main.tile[x, y].TileFrameY = 54;
|
||||
}
|
||||
|
||||
+10
-10
@@ -39,11 +39,11 @@ namespace CalamityMod.World
|
||||
{
|
||||
for (int y = shrineLocationY - randomY - 1; y <= shrineLocationY + randomY + 1; y++)
|
||||
{
|
||||
Main.tile[x, y].active(true);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[x, y].TileType = tile;
|
||||
Main.tile[x, y].slope(0);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[x, y].LiquidAmount = 0;
|
||||
Main.tile[x, y].LiquidType = LiquidID.Water;
|
||||
Main.tile[x, y].Get<LiquidData>().LiquidType = LiquidID.Water;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
for (int y = shrineLocationY - randomY; y <= shrineLocationY + randomY; y++)
|
||||
{
|
||||
Main.tile[x, y].active(false);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[x, y].WallType = wall;
|
||||
}
|
||||
}
|
||||
@@ -61,12 +61,12 @@ namespace CalamityMod.World
|
||||
for (int x = shrineLocationX - randomX - 1; x <= shrineLocationX + randomX + 1; x++)
|
||||
{
|
||||
for (int y = shrineLocationY + randomY - 2; y <= shrineLocationY + randomY; y++)
|
||||
Main.tile[x, y].active(false);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
for (int x = shrineLocationX - randomX - 1; x <= shrineLocationX + randomX + 1; x++)
|
||||
{
|
||||
for (int y = shrineLocationY + randomY - 2; y <= shrineLocationY + randomY - 1; y++)
|
||||
Main.tile[x, y].active(false);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
|
||||
// Replace tiles from bottom of shrine area with shrine tile type 2
|
||||
@@ -76,9 +76,9 @@ namespace CalamityMod.World
|
||||
int y = shrineLocationY + randomY + 2;
|
||||
while (!Main.tile[x, y].HasTile && y < Main.maxTilesY && verticalOffset > 0)
|
||||
{
|
||||
Main.tile[x, y].active(true);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[x, y].TileType = tile2;
|
||||
Main.tile[x, y].slope(0);
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
y++;
|
||||
verticalOffset--;
|
||||
}
|
||||
@@ -91,7 +91,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
for (int x = shrineLocationX - randomX - 1; x <= shrineLocationX + randomX + 1; x++)
|
||||
{
|
||||
Main.tile[x, num21].active(true);
|
||||
Main.tile[x, num21].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[x, num21].TileType = tile;
|
||||
}
|
||||
randomX -= WorldGen.genRand.Next(1, 3);
|
||||
@@ -165,7 +165,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (m < Main.maxTilesY)
|
||||
{
|
||||
Main.tile[l, m].slope(0);
|
||||
Main.tile[l, m].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[l, m].halfBrick(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace CalamityMod.World
|
||||
if (!CalamityUtils.ParanoidTileRetrieval(i + dx, j + dy).HasTile)
|
||||
{
|
||||
Main.tile[i + dx, j + dy].TileType = WorldGen.crimson ? TileID.CorruptSandstone : TileID.CrimsonSandstone;
|
||||
Main.tile[i + dx, j + dy].active(true);
|
||||
Main.tile[i + dx, j + dy].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -283,12 +283,12 @@ namespace CalamityMod.World
|
||||
{
|
||||
if (m != num6 - 1 || (l != num4 && l != num5))
|
||||
{
|
||||
Main.tile[l, m].active(true);
|
||||
Main.tile[l, m].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[l, m].LiquidAmount = 0;
|
||||
Main.tile[l, m].TileType = type;
|
||||
Main.tile[l, m].WallType = 0;
|
||||
Main.tile[l, m].halfBrick(false);
|
||||
Main.tile[l, m].slope(0);
|
||||
Main.tile[l, m].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -318,7 +318,7 @@ namespace CalamityMod.World
|
||||
{
|
||||
if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].WallType == 0)
|
||||
{
|
||||
Main.tile[n, num8].active(false);
|
||||
Main.tile[n, num8].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[n, num8].WallType = wall;
|
||||
}
|
||||
}
|
||||
@@ -327,20 +327,20 @@ namespace CalamityMod.World
|
||||
int num10 = (int)vector.Y;
|
||||
for (int num11 = num9 - 2; num11 <= num9 + 2; num11++)
|
||||
{
|
||||
Main.tile[num11, num10].active(false);
|
||||
Main.tile[num11, num10 - 1].active(false);
|
||||
Main.tile[num11, num10 - 2].active(false);
|
||||
Main.tile[num11, num10].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num11, num10 - 1].Get<TileWallWireStateData>().HasTile = false;
|
||||
Main.tile[num11, num10 - 2].Get<TileWallWireStateData>().HasTile = false;
|
||||
}
|
||||
WorldGen.PlaceTile(num9, num10, 10, true, false, -1, WorldGen.crimson ? 1 : 10); //door
|
||||
num9 = i + (num2 + 1) * -num - num;
|
||||
for (int num12 = num6; num12 <= num7 + 1; num12++)
|
||||
{
|
||||
Main.tile[num9, num12].active(true);
|
||||
Main.tile[num9, num12].Get<TileWallWireStateData>().HasTile = true;
|
||||
Main.tile[num9, num12].LiquidAmount = 0;
|
||||
Main.tile[num9, num12].TileType = type;
|
||||
Main.tile[num9, num12].WallType = 0;
|
||||
Main.tile[num9, num12].halfBrick(false);
|
||||
Main.tile[num9, num12].slope(0);
|
||||
Main.tile[num9, num12].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
}
|
||||
int contain;
|
||||
if (WorldGen.crimson)
|
||||
|
||||
Reference in new issue
Block a user