42577 {
42579 {
42580 return;
42581 }
42583 bool flag2 =
false;
42586 if (Main.tile[i,
j] ==
null)
42587 {
42589 }
42591 tile5 = Main.tile[i,
j];
42593 tile5 = Main.tile[i,
j];
42596 tile5 = Main.tile[i,
j];
42597 int num12 = tile5.frameX / 18;
42600 {
42603 }
42606 if (type == 14 &&
num13 == 25)
42607 {
42609 }
42612 {
42614 }
42616 {
42618 {
42619 if (Main.tile[
k,
l] ==
null)
42620 {
42622 }
42624 if (
tile5.active())
42625 {
42627 if (
tile5.type == type)
42628 {
42631 {
42634 {
42635 continue;
42636 }
42637 }
42638 }
42639 }
42641 }
42642 if (type == 285 || type == 286 || type == 298 || type == 299 || type == 310 || type == 339 || type == 538 || (type >= 361 && type <= 364) || type == 532 || type == 544 || type == 533 || type == 555 || type == 556 || type == 582 || type == 619 || type == 629)
42643 {
42645 {
42646 if (!(Main.tile[
k,
num15] ==
null))
42647 {
42649 if (
tile5.nactive())
42650 {
42651 bool[] tileSolidTop = Main.tileSolidTop;
42653 if (tileSolidTop[
tile5.type])
42654 {
42656 if (
tile5.frameY == 0)
42657 {
42659 }
42660 }
42661 }
42662 }
42663 if (!(Main.tile[
k,
num15] ==
null))
42664 {
42666 if (
tile5.active())
42667 {
42671 {
42673 }
42674 }
42675 }
42677 }
42678 }
42679 else
42680 {
42681 switch (type)
42682 {
42683 case 488:
42684 {
42686 if (Main.tile[
k,
num15] !=
null)
42687 {
42689 if (
tile5.active())
42690 {
42693 }
42694 }
42696 {
42698 }
42699 break;
42700 }
42701 case 26:
42702 {
42705 {
42707 }
42708 break;
42709 }
42710 case 186:
42711 {
42713 {
42715 break;
42716 }
42718 if (tile == null || !tile.active())
42719 {
42720 break;
42721 }
42723 {
42724 case 26:
42725 case 27:
42726 case 28:
42727 case 29:
42728 case 30:
42729 case 31:
42731 {
42733 }
42734 break;
42735 case 32:
42736 case 33:
42737 case 34:
42739 {
42741 }
42742 break;
42743 }
42744 break;
42745 }
42746 }
42747 }
42750 if (type == 187)
42751 {
42753 {
42755 }
42756 else
42757 {
42760 {
42762 {
42763 case 0:
42764 case 1:
42765 case 2:
42766 case 3:
42767 case 4:
42768 case 5:
42770 {
42772 }
42773 break;
42774 case 6:
42775 case 7:
42776 case 8:
42778 {
42780 }
42781 break;
42782 case 29:
42783 case 30:
42784 case 31:
42785 case 32:
42786 case 33:
42787 case 34:
42789 {
42791 }
42792 break;
42793 }
42794 }
42795 }
42796 }
42798 {
42800 }
42801 }
42802 if (type == 187 && Main.tile[
num12,
num] !=
null)
42803 {
42805 if (
tile5.frameX >= 756)
42806 {
42808 if (
tile5.frameX <= 900)
42809 {
42811 if (
tile5.type != 2)
42812 {
42814 if (
tile5.type != 2)
42815 {
42817 if (
tile5.type != 2)
42818 {
42820 if (
tile5.type != 477)
42821 {
42823 if (
tile5.type != 477)
42824 {
42826 if (
tile5.type != 477)
42827 {
42829 if (
tile5.type != 492)
42830 {
42832 if (
tile5.type != 492)
42833 {
42835 if (
tile5.type != 492)
42836 {
42838 tile5.frameX -= 378;
42840 tile5.frameX -= 378;
42842 tile5.frameX -= 378;
42844 tile5.frameX -= 378;
42846 tile5.frameX -= 378;
42848 tile5.frameX -= 378;
42850 tile5.type = 186;
42852 tile5.type = 186;
42854 tile5.type = 186;
42856 tile5.type = 186;
42858 tile5.type = 186;
42860 tile5.type = 186;
42861 }
42862 }
42863 }
42864 }
42865 }
42866 }
42867 }
42868 }
42869 }
42870 }
42871 }
42872 }
42873 if (
flag && type == 488 &&
gen)
42874 {
42876 {
42878 {
42882 tile5.type = 488;
42884 tile5.frameX = (short)((
m -
num12) * 18);
42886 tile5.frameY = (short)((
n -
num) * 18);
42887 }
42891 tile5.type = 2;
42896 }
42898 }
42900 {
42901 return;
42902 }
42903 tile5 = Main.tile[i,
j];
42904 int frameX =
tile5.frameX;
42908 {
42910 }
42913 {
42915 {
42916 if (Main.tile[
num2,
num3] ==
null)
42917 {
42919 }
42921 if (
tile5.type == type)
42922 {
42924 if (
tile5.active())
42925 {
42927 }
42928 }
42929 }
42930 }
42931 using (
new Item.DisableNewItemMethod(!
drop))
42932 {
42933 if (type == 14)
42934 {
42936 {
42937 8 => 917,
42938 9 => 1144,
42939 10 => 1397,
42940 11 => 1400,
42941 12 => 1403,
42942 13 => 1460,
42943 14 => 1510,
42944 23 => 1926,
42945 21 => 1794,
42946 22 => 1816,
42947 24 => 2248,
42948 25 => 2259,
42949 26 => 2532,
42950 27 => 2550,
42951 28 => 677,
42952 29 => 2583,
42953 30 => 2743,
42954 31 => 2824,
42955 32 => 3153,
42956 33 => 3155,
42957 34 => 3154,
42959 }))));
42961 }
42962 switch (type)
42963 {
42964 case 469:
42965 {
42968 {
42970 }
42972 {
42974 }
42976 {
42978 }
42980 {
42982 }
42984 {
42986 }
42988 {
42990 }
42992 {
42994 }
42996 {
42998 }
43000 {
43002 }
43004 {
43006 }
43008 {
43010 }
43012 break;
43013 }
43014 case 114:
43016 break;
43017 case 26:
43019 {
43021 }
43022 break;
43023 case 298:
43025 break;
43026 case 299:
43028 break;
43029 case 361:
43030 case 362:
43031 case 363:
43032 case 364:
43034 break;
43035 default:
43036 if (type >= 391 && type <= 394)
43037 {
43039 break;
43040 }
43041 switch (type)
43042 {
43043 case 285:
43045 break;
43046 case 286:
43048 break;
43049 case 582:
43051 break;
43052 case 619:
43054 break;
43055 case 310:
43057 break;
43058 case 339:
43060 break;
43061 case 538:
43063 break;
43064 case 544:
43066 break;
43067 case 532:
43069 break;
43070 case 533:
43072 break;
43073 case 555:
43075 break;
43076 case 556:
43078 break;
43079 case 629:
43081 break;
43082 case 217:
43084 break;
43085 case 218:
43087 break;
43088 case 219:
43090 break;
43091 case 642:
43093 break;
43094 case 220:
43096 break;
43097 case 377:
43099 break;
43100 case 228:
43102 break;
43103 case 405:
43105 break;
43106 case 486:
43108 break;
43109 case 488:
43111 break;
43112 case 215:
43114 break;
43115 case 244:
43117 break;
43118 case 647:
43119 {
43122 {
43124 }
43125 else if (
num13 < 13)
43126 {
43128 }
43129 else if (
num13 < 16)
43130 {
43132 }
43133 else if (
num13 < 18)
43134 {
43136 }
43137 else if (
num13 < 20)
43138 {
43140 }
43141 else if (
num13 < 22)
43142 {
43144 }
43145 else if (
num13 < 26)
43146 {
43148 }
43149 else if (
num13 < 32)
43150 {
43152 }
43153 else if (
num13 < 35)
43154 {
43156 }
43158 {
43160 }
43161 break;
43162 }
43163 case 648:
43164 {
43168 {
43170 }
43171 else if (
num13 < 9)
43172 {
43174 }
43175 else if (
num13 < 14)
43176 {
43178 }
43179 else if (
num13 < 17)
43180 {
43182 }
43183 else if (
num13 < 18)
43184 {
43186 }
43187 else if (
num13 < 21)
43188 {
43190 }
43191 else if (
num13 < 29)
43192 {
43194 }
43195 else if (
num13 < 35)
43196 {
43198 }
43199 else if (
num13 < 41)
43200 {
43202 }
43203 else if (
num13 < 47)
43204 {
43206 }
43207 else if (
num13 < 52)
43208 {
43210 }
43211 else if (
num13 < 55)
43212 {
43214 }
43216 {
43218 }
43219 break;
43220 }
43221 case 651:
43222 {
43226 {
43228 }
43229 break;
43230 }
43231 case 17:
43233 break;
43234 case 77:
43236 break;
43237 case 86:
43239 break;
43240 case 237:
43242 break;
43243 case 87:
43244 {
43247 {
43249 }
43250 else
43251 {
43253 {
43254 case 4:
43256 break;
43257 case 5:
43258 case 6:
43259 case 7:
43261 break;
43262 case 8:
43263 case 9:
43264 case 10:
43266 break;
43267 default:
43269 {
43270 21 => 2531,
43271 22 => 2548,
43272 23 => 2565,
43273 24 => 2580,
43274 25 => 2671,
43275 26 => 2821,
43276 27 => 3141,
43277 28 => 3143,
43278 29 => 3142,
43279 30 => 3915,
43280 31 => 3916,
43281 32 => 3944,
43282 33 => 3971,
43283 34 => 4158,
43284 35 => 4179,
43285 36 => 4200,
43286 37 => 4221,
43287 38 => 4310,
43288 39 => 4579,
43289 40 => 5161,
43290 41 => 5182,
43291 42 => 5203,
43293 }));
43294 break;
43295 }
43296 }
43298 break;
43299 }
43300 case 88:
43301 {
43304 break;
43305 }
43306 case 89:
43308 break;
43309 case 133:
43310 if (frameX >= 54)
43311 {
43313 }
43314 else
43315 {
43317 }
43318 break;
43319 case 186:
43320 if (frameX < 864)
43321 {
43322 break;
43323 }
43324 if (frameX <= 954)
43325 {
43330 {
43332 }
43334 {
43336 }
43338 {
43340 }
43342 {
43344 }
43346 {
43348 }
43350 {
43352 }
43354 {
43356 }
43358 {
43360 }
43362 {
43364 }
43366 {
43368 }
43370 {
43372 }
43374 {
43376 }
43378 {
43380 }
43382 {
43384 }
43386 {
43388 }
43389 }
43390 else if (frameX <= 1062)
43391 {
43394 {
43396 }
43398 {
43400 }
43402 {
43404 }
43406 {
43408 }
43409 }
43410 else if (frameX <= 1170)
43411 {
43414 {
43416 }
43418 {
43420 }
43422 {
43424 }
43426 {
43428 }
43429 }
43430 break;
43431 case 187:
43432 if (frameX >= 918 && frameX <= 970)
43433 {
43434 if (Main.rand.Next(50) == 0)
43435 {
43437 }
43438 else
43439 {
43441 }
43442 }
43443 break;
43444 }
43445 break;
43446 }
43449 {
43451 {
43453 }
43454 }
43455 if (type == 488)
43456 {
43458 }
43459 }
43460 }
static bool[] HardenedSand
static bool Drop(int i, int j, int type, bool includeLargeObjectDrops=true)
This serves as the central class from which tile-related functions are supported and carried out.
static bool destroyObject
static void SmashAltar(int i, int j)
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static UnifiedRandom genRand
static int GetItemDrop_Benches(int style)
static MysticLogFairiesEvent mysticLogsEvent
static int GetDresserItemDrop(int style)
static void TileFrame(int i, int j, bool resetFrame=false, bool noBreak=false)
static bool noTileActions
static int GetCampfireItemDrop(int style)
static bool SolidTileAllowBottomSlope(int i, int j)
static IEntitySource GetItemSource_FromTileBreak(int x, int y)
static bool IsGeneratingHardMode