53777 {
53779 {
53780 return;
53781 }
53783 int num = y;
53786 {
53787 return;
53788 }
53790 {
53792 {
53793 return;
53794 }
53795 }
53799 y--;
53801 {
53802 y--;
53803 }
53804 y++;
53806 {
53807 return;
53808 }
53809 if (Main.getGoodWorld &&
genRand.Next(17) == 0)
53810 {
53811 Projectile.NewProjectile(
GetProjectileSource_ShakeTree(x, y), x * 16, y * 16, (
float)Main.rand.Next(-100, 101) * 0.002f, 0f, 28, 0, 0f, Main.myPlayer, 16f, 16f);
53812 }
53814 {
53816 }
53818 {
53820 }
53822 {
53824 }
53826 {
53828 }
53830 {
53832 }
53834 {
53836 }
53838 {
53840 }
53841 else if (
genRand.Next(35) == 0 && Main.halloween)
53842 {
53844 }
53845 else if (
genRand.Next(12) == 0)
53846 {
53850 }
53851 else if (
genRand.Next(20) == 0)
53852 {
53856 {
53860 {
53862 }
53864 {
53866 }
53867 }
53868 else if (
genRand.Next(10) == 0)
53869 {
53873 {
53875 }
53877 {
53879 }
53880 }
53882 }
53884 {
53886 {
53887 0 => 74,
53888 1 => 297,
53889 2 => 298,
53890 3 => 299,
53892 };
53893 if (
Player.GetClosestRollLuck(x, y,
NPC.goldCritterChance) == 0f)
53894 {
53896 }
53898 }
53900 {
53901 int type3 = Main.rand.NextFromList(
new short[3] { 583, 584, 585 });
53902 if (Main.tenthAnniversaryWorld && Main.rand.Next(4) != 0)
53903 {
53905 }
53907 }
53909 {
53911 obj.velocity.Y = 1f;
53912 obj.netUpdate = true;
53913 }
53915 {
53917 obj2.velocity.Y = 1f;
53918 obj2.netUpdate = true;
53919 }
53921 {
53923 }
53925 {
53926 for (
int l = 0;
l < 5;
l++)
53927 {
53928 Point point =
new Point(x + Main.rand.Next(-2, 2), y - 1 + Main.rand.Next(-2, 2));
53929 int type4 = ((
Player.GetClosestRollLuck(x, y,
NPC.goldCritterChance) != 0f) ? Main.rand.NextFromList(
new short[3] { 74, 297, 298 }) : 442);
53931 obj3.velocity = Main.rand.NextVector2CircularEdge(3f, 3f);
53932 obj3.netUpdate = true;
53933 }
53934 }
53936 {
53937 for (
int m = 0;
m < 5;
m++)
53938 {
53939 Point point2 =
new Point(x + Main.rand.Next(-2, 2), y - 1 + Main.rand.Next(-2, 2));
53942 obj4.netUpdate = true;
53943 }
53944 }
53946 {
53948 }
53950 {
53952 }
53954 {
53956 }
53958 {
53960 }
53962 {
53964 }
53966 {
53968 if (
Player.GetClosestRollLuck(x, y,
NPC.goldCritterChance) == 0f)
53969 {
53971 }
53973 }
53975 {
53978 {
53979 0 => 654,
53980 1 => 653,
53982 });
53983 }
53985 {
53987 }
53989 {
53992 {
53993 0 => 4009,
53994 1 => 4293,
53995 2 => 4282,
53996 3 => 4290,
53998 });
53999 }
54001 {
54003 }
54005 {
54007 }
54009 {
54011 }
54013 {
54015 }
54017 {
54019 }
54021 {
54023 }
54025 {
54027 }
54033 {
54034 if (Main.netMode == 2)
54035 {
54036 NetMessage.SendData(112, -1, -1,
null, 1, x, y, 1f,
passStyle);
54037 }
54038 if (Main.netMode == 0)
54039 {
54041 }
54042 }
54043 }
static bool[] IsShakeable
static EntitySource_ShakeTree GetProjectileSource_ShakeTree(int x, int y)
static void KillTile_GetItemDrops(int x, int y, Tile tileCache, out int dropItem, out int dropItemStack, out int secondaryItem, out int secondaryItemStack, bool includeLargeObjectDrops=false)
static void TreeGrowFX(int x, int y, int height, int treeGore, bool hitTree=false)
static UnifiedRandom genRand
static void GetTreeBottom(int i, int j, out int x, out int y)
static void GetTreeLeaf(int x, Tile topTile, Tile t, ref int treeHeight, out int treeFrame, out int passStyle)
static bool IsPalmOasisTree(int x)
static EntitySource_ShakeTree GetItemSource_ShakeTree(int x, int y)
static IEntitySource GetItemSource_FromTreeShake(int x, int y)
static bool IsTileALeafyTreeTop(int i, int j)
static TreeTypes GetTreeType(int tileType)