terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ PlaceSandTrap()

static bool Terraria.WorldGen.PlaceSandTrap ( int i,
int j )
inlinestatic

Definition at line 6928 of file WorldGen.cs.

6929 {
6930 int num = 1;
6931 if (num == 0)
6932 {
6933 }
6934 Tile tile;
6935 bool flag = tile.active();
6936 if (num == 0)
6937 {
6938 }
6939 int underworldLayer = Main.UnderworldLayer;
6940 if (num == 0)
6941 {
6942 }
6943 Tile tile2;
6944 ushort type = tile2.type;
6945 if (num != 0)
6946 {
6947 if (num == 0)
6948 {
6949 }
6950 Tile tile3;
6951 bool flag2 = tile3.halfBrick();
6952 if (num == 0)
6953 {
6954 }
6955 Tile tile4;
6956 bool flag3 = tile4.topSlope();
6957 }
6958 if (num == 0)
6959 {
6960 }
6961 Tile tile5;
6962 ushort type2 = tile5.type;
6963 if (num == 0)
6964 {
6965 }
6966 Tile tile6;
6967 ushort type3 = tile6.type;
6968 if (num == 0)
6969 {
6970 }
6971 Tile tile7;
6972 ushort type4 = tile7.type;
6973 if (num == 0)
6974 {
6975 }
6976 Tile tile8;
6977 ushort wall = tile8.wall;
6978 if (num == 0)
6979 {
6980 }
6981 Tile tile9;
6982 ushort wall2 = tile9.wall;
6983 if (num == 0)
6984 {
6985 }
6986 UnifiedRandom genRand = WorldGen.genRand;
6987 int num2 = 6;
6988 int num3 = 12;
6989 int num4 = genRand.Next(num2, num3);
6991 int num5 = 6;
6992 int num6 = 14;
6993 int num7 = genRand2.Next(num5, num6);
6994 if (num == 0)
6995 {
6996 }
6997 Tile tile10;
6998 ushort type5 = tile10.type;
6999 if (num == 0)
7000 {
7001 }
7002 Tile tile11;
7003 return tile11.active();
7004 }
class f__AnonymousType0<< Count > j__TPar
static UnifiedRandom genRand
Definition WorldGen.cs:38

References Terraria.Tile.active(), Terraria.WorldGen.genRand, Terraria.Tile.halfBrick(), j__TPar, Terraria.Utilities.UnifiedRandom.Next(), Terraria.Tile.topSlope(), Terraria.Tile.type, Terraria.Main.UnderworldLayer, and Terraria.Tile.wall.