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

◆ DrawAnimatedTile_AdjustForVisionChangers()

void Terraria.GameContent.Drawing.TileDrawing.DrawAnimatedTile_AdjustForVisionChangers ( int i,
int j,
short tileSHeader,
ushort typeCache,
short tileFrameX,
short tileFrameY,
Color tileLight,
bool canDoDust )
inlineprivate

Definition at line 1728 of file TileDrawing.cs.

1729 {
1731 if (localPlayer.dangerSense)
1732 {
1733 bool flag = TileDrawing.IsTileDangerous(localPlayer, tileSHeader, typeCache, tileFrameX);
1735 int num = 30;
1737 if (unifiedRandom.Next(num) == 0)
1738 {
1739 if (true)
1740 {
1741 return;
1742 }
1743 if (!true)
1744 {
1745 }
1746 float x = localPlayer.position.X;
1747 int num2 = 1;
1748 if (num2 != 0)
1749 {
1750 return;
1751 }
1752 if (!true)
1753 {
1754 }
1755 }
1756 }
1757 bool findTreasure = this._localPlayer.findTreasure;
1758 if (findTreasure)
1759 {
1760 if (!findTreasure)
1761 {
1762 }
1763 bool flag2 = Main.IsTileSpelunkable(typeCache, tileFrameX, tileFrameY);
1764 if (this._isActiveAndNotPaused)
1765 {
1766 int num3 = 60;
1768 if (unifiedRandom2.Next(num3) == 0)
1769 {
1770 if (true)
1771 {
1772 return;
1773 }
1774 int num4 = 1;
1775 if (num4 == 0)
1776 {
1777 }
1778 if (num4 == 0)
1779 {
1780 }
1781 if (!true)
1782 {
1783 }
1784 }
1785 }
1786 }
1787 bool biomeSight = this._localPlayer.biomeSight;
1788 if (biomeSight)
1789 {
1790 if (!biomeSight)
1791 {
1792 }
1793 if (!biomeSight)
1794 {
1795 }
1796 if (this._isActiveAndNotPaused)
1797 {
1798 int num5 = 480;
1800 if (unifiedRandom3.Next(num5) == 0)
1801 {
1802 if (true)
1803 {
1804 return;
1805 }
1806 return;
1807 }
1808 }
1809 }
1810 }
class f__AnonymousType0<< Count > j__TPar

References Terraria.GameContent.Drawing.TileDrawing._isActiveAndNotPaused, Terraria.GameContent.Drawing.TileDrawing._localPlayer, Terraria.Player.biomeSight, Terraria.Player.dangerSense, Terraria.Player.findTreasure, Terraria.GameContent.Drawing.TileDrawing.IsTileDangerous(), Terraria.Main.IsTileSpelunkable(), and j__TPar.