56966 {
56967 int num = -1;
56972 if (tileCache.type == 3)
56973 {
56974 num = 400;
56976 if (Main.player[
num5].flowerBoots && tileCache.frameX >= 108)
56977 {
56978 num *= 10000;
56980 }
56981 }
56982 if (tileCache.type == 73)
56983 {
56984 num = 200;
56986 if (Main.player[
num5].flowerBoots && tileCache.frameX >= 108)
56987 {
56988 num *= 10000;
56990 }
56991 }
56992 if (tileCache.type == 637)
56993 {
56995 if (Main.player[
num5].flowerBoots && tileCache.frameX >= 108)
56996 {
56998 }
56999 }
57000 if (tileCache.type == 61)
57001 {
57003 if (Main.player[
num5].flowerBoots && tileCache.frameX >= 108)
57004 {
57006 }
57007 }
57008 if (tileCache.type == 74)
57009 {
57011 if (Main.player[
num5].flowerBoots && tileCache.frameX >= 108)
57012 {
57014 }
57015 }
57016 if (tileCache.type == 62)
57017 {
57019 }
57020 if (tileCache.type == 185)
57021 {
57022 if (tileCache.frameY == 0 && tileCache.frameX < 214)
57023 {
57024 num = 6;
57025 }
57026 if (tileCache.frameY == 18 && (tileCache.frameX < 214 || tileCache.frameX >= 1368))
57027 {
57028 num = 6;
57029 }
57030 }
57031 else if (tileCache.type == 186)
57032 {
57033 if (tileCache.frameX >= 378 && tileCache.frameX <= 700)
57034 {
57035 num = 6;
57036 }
57037 }
57038 else if (tileCache.type == 187)
57039 {
57040 if (tileCache.frameX >= 756 && tileCache.frameX <= 916)
57041 {
57042 num = 6;
57043 }
57044 if (tileCache.frameX <= 322)
57045 {
57046 num = 6;
57047 }
57048 }
57049 else if (tileCache.type == 233)
57050 {
57052 }
57054 if (Main.player[
num5].ZoneGraveyard)
57055 {
57057 }
57058 if (num > 0 &&
NPC.CountNPCS(
num6) < 5 &&
genRand.Next(num) == 0)
57059 {
57061 if (
num6 == 357 &&
Player.GetClosestRollLuck(i,
j,
NPC.goldCritterChance) == 0f)
57062 {
57064 }
57066 Main.npc[
num7].TargetClosest();
57067 Main.npc[
num7].velocity.Y = (float)
genRand.Next(-50, -21) * 0.1f;
57068 Main.npc[
num7].velocity.X = (float)
genRand.Next(0, 26) * 0.1f * (float)(-Main.npc[
num7].direction);
57069 Main.npc[
num7].direction *= -1;
57070 Main.npc[
num7].netUpdate =
true;
57071 }
57073 {
57075 if (
Player.GetClosestRollLuck(i,
j,
NPC.goldCritterChance) == 0f)
57076 {
57078 }
57080 Main.npc[
num8].TargetClosest();
57081 Main.npc[
num8].velocity.Y = (float)
genRand.Next(-50, -21) * 0.1f;
57082 Main.npc[
num8].velocity.X = (float)
genRand.Next(0, 26) * 0.1f * (float)(-Main.npc[
num8].direction);
57083 Main.npc[
num8].direction *= -1;
57084 Main.npc[
num8].netUpdate =
true;
57085 }
57087 {
57090 {
57092 }
57094 {
57096 }
57098 Main.npc[
num9].TargetClosest();
57099 Main.npc[
num9].velocity.Y = (float)
genRand.Next(-50, -21) * 0.1f;
57100 Main.npc[
num9].velocity.X = (float)
genRand.Next(0, 26) * 0.1f * (float)(-Main.npc[
num9].direction);
57101 Main.npc[
num9].direction *= -1;
57102 Main.npc[
num9].netUpdate =
true;
57103 }
57105 {
57108 {
57110 }
57112 Main.npc[
num10].TargetClosest();
57113 Main.npc[
num10].velocity.Y = (float)
genRand.Next(-50, -21) * 0.1f;
57114 Main.npc[
num10].velocity.X = (float)
genRand.Next(0, 26) * 0.1f * (float)(-Main.npc[
num10].direction);
57115 Main.npc[
num10].direction *= -1;
57116 Main.npc[
num10].netUpdate =
true;
57117 }
57118 }
static EntitySource_TileBreak GetNPCSource_TileBreak(int x, int y)
static UnifiedRandom genRand