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

◆ mayanTrap()

static bool Terraria.WorldGen.mayanTrap ( int x2,
int y2 )
inlinestatic

Definition at line 1653 of file WorldGen.cs.

1654 {
1655 int num = 1;
1656 if (num == 0)
1657 {
1658 }
1659 UnifiedRandom genRand = WorldGen.genRand;
1660 int num2 = 3;
1661 int num3 = genRand.Next(num2);
1662 if (num == 0)
1663 {
1664 }
1665 bool flag = WorldGen.SolidOrSlopedTile(0, x2);
1666 if (num == 0)
1667 {
1668 }
1669 if (num == 0)
1670 {
1671 }
1672 Tile tile;
1673 ushort type = tile.type;
1674 if (num == 0)
1675 {
1676 }
1677 Tile tile2;
1678 ushort type2 = tile2.type;
1679 if (num == 0)
1680 {
1681 }
1682 Tile tile3;
1683 byte liquid = tile3.liquid;
1684 if (num == 0)
1685 {
1686 }
1687 Tile tile4;
1688 bool flag2 = tile4.lava();
1689 if (num == 0)
1690 {
1691 }
1692 Tile tile5;
1693 bool flag3 = tile5.nactive();
1694 if (num == 0)
1695 {
1696 }
1697 Tile tile6;
1698 bool flag4 = tile6.nactive();
1699 if (num == 0)
1700 {
1701 }
1702 Tile tile7;
1703 bool flag5 = tile7.nactive();
1704 if (num == 0)
1705 {
1706 }
1707 Tile tile8;
1708 bool flag6 = tile8.nactive();
1709 if (num == 0)
1710 {
1711 }
1712 Tile tile9;
1713 bool flag7 = tile9.nactive();
1714 if (num == 0)
1715 {
1716 }
1717 Tile tile10;
1718 bool flag8 = tile10.nactive();
1719 if (num == 0)
1720 {
1721 }
1722 Tile tile11;
1723 bool flag9 = tile11.nactive();
1724 if (num == 0)
1725 {
1726 }
1727 Tile tile12;
1728 bool flag10 = tile12.nactive();
1729 if (num == 0)
1730 {
1731 }
1732 Tile tile13;
1733 bool flag11 = tile13.nactive();
1734 if (num == 0)
1735 {
1736 }
1737 Tile tile14;
1738 ushort type3 = tile14.type;
1739 if (num == 0)
1740 {
1741 }
1742 Tile tile15;
1743 ushort type4 = tile15.type;
1744 if (num == 0)
1745 {
1746 }
1747 Tile tile16;
1748 ushort type5 = tile16.type;
1749 long num4;
1750 if (num3 != 0)
1751 {
1752 num4 = 0L;
1753 if (num == 0)
1754 {
1755 }
1756 bool flag12 = WorldGen.SolidOrSlopedTile(0, num3);
1757 }
1759 int num5 = 3;
1760 int num6 = genRand2.Next(num5);
1761 int num7 = 5;
1762 bool flag13 = WorldGen.InWorld((int)num4, num3, num7);
1763 return WorldGen.SolidOrSlopedTile((int)num4, num3);
1764 }
class f__AnonymousType0<< Count > j__TPar
static UnifiedRandom genRand
Definition WorldGen.cs:38

References Terraria.WorldGen.genRand, Terraria.WorldGen.InWorld(), j__TPar, System.L, Terraria.Tile.lava(), Terraria.Tile.liquid, Terraria.Tile.nactive(), Terraria.Utilities.UnifiedRandom.Next(), Terraria.WorldGen.SolidOrSlopedTile(), and Terraria.Tile.type.

Referenced by Terraria.WorldGen.templePart2().