TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AnimateTiles_CritterCages()

static void Terraria.Main.AnimateTiles_CritterCages ( )
inlinestatic

Definition at line 13199 of file Main.cs.

13200 {
13201 if (!critterCage)
13202 {
13203 return;
13204 }
13205 for (int i = 0; i < cageFrames; i++)
13206 {
13207 if (bunnyCageFrame[i] == 0)
13208 {
13210 if (bunnyCageFrameCounter[i] <= rand.Next(30, 900))
13211 {
13212 continue;
13213 }
13214 if (rand.Next(3) != 0)
13215 {
13216 int num = rand.Next(7);
13217 if (num == 0)
13218 {
13219 bunnyCageFrame[i] = 4;
13220 }
13221 else if (num <= 2)
13222 {
13223 bunnyCageFrame[i] = 2;
13224 }
13225 else
13226 {
13227 bunnyCageFrame[i] = 1;
13228 }
13229 }
13230 bunnyCageFrameCounter[i] = 0;
13231 }
13232 else if (bunnyCageFrame[i] == 1)
13233 {
13235 if (bunnyCageFrameCounter[i] >= 10)
13236 {
13237 bunnyCageFrameCounter[i] = 0;
13238 bunnyCageFrame[i] = 0;
13239 }
13240 }
13241 else if (bunnyCageFrame[i] >= 2 && bunnyCageFrame[i] <= 3)
13242 {
13244 if (bunnyCageFrameCounter[i] >= 10)
13245 {
13246 bunnyCageFrameCounter[i] = 0;
13247 bunnyCageFrame[i]++;
13248 }
13249 if (bunnyCageFrame[i] > 3)
13250 {
13251 bunnyCageFrame[i] = 0;
13252 }
13253 }
13254 else if (bunnyCageFrame[i] >= 4 && bunnyCageFrame[i] <= 10)
13255 {
13257 if (bunnyCageFrameCounter[i] >= 5)
13258 {
13259 bunnyCageFrameCounter[i] = 0;
13260 bunnyCageFrame[i]++;
13261 }
13262 }
13263 else if (bunnyCageFrame[i] == 11)
13264 {
13266 if (bunnyCageFrameCounter[i] <= rand.Next(30, 900))
13267 {
13268 continue;
13269 }
13270 if (rand.Next(3) != 0)
13271 {
13272 if (rand.Next(7) == 0)
13273 {
13274 bunnyCageFrame[i] = 13;
13275 }
13276 else
13277 {
13278 bunnyCageFrame[i] = 12;
13279 }
13280 }
13281 bunnyCageFrameCounter[i] = 0;
13282 }
13283 else if (bunnyCageFrame[i] == 12)
13284 {
13286 if (bunnyCageFrameCounter[i] >= 10)
13287 {
13288 bunnyCageFrameCounter[i] = 0;
13289 bunnyCageFrame[i] = 11;
13290 }
13291 }
13292 else if (bunnyCageFrame[i] >= 13)
13293 {
13295 if (bunnyCageFrameCounter[i] >= 5)
13296 {
13297 bunnyCageFrameCounter[i] = 0;
13298 bunnyCageFrame[i]++;
13299 }
13300 if (bunnyCageFrame[i] > 21)
13301 {
13302 bunnyCageFrame[i] = 0;
13303 }
13304 }
13305 }
13306 for (int j = 0; j < cageFrames; j++)
13307 {
13308 if (squirrelCageFrame[j] == 0)
13309 {
13311 if (squirrelCageFrameCounter[j] <= rand.Next(30, 900))
13312 {
13313 continue;
13314 }
13315 if (rand.Next(3) != 0)
13316 {
13317 int num4 = rand.Next(7);
13318 if (num4 == 0)
13319 {
13320 squirrelCageFrame[j] = 4;
13321 }
13322 else if (num4 <= 2)
13323 {
13324 squirrelCageFrame[j] = 2;
13325 }
13326 else
13327 {
13328 squirrelCageFrame[j] = 1;
13329 }
13330 }
13332 }
13333 else if (squirrelCageFrame[j] == 1)
13334 {
13336 if (squirrelCageFrameCounter[j] >= 10)
13337 {
13339 squirrelCageFrame[j] = 0;
13340 }
13341 }
13342 else if (squirrelCageFrame[j] >= 2 && squirrelCageFrame[j] <= 3)
13343 {
13345 if (squirrelCageFrameCounter[j] >= 5)
13346 {
13349 }
13350 if (squirrelCageFrame[j] > 3)
13351 {
13352 if (rand.Next(5) == 0)
13353 {
13354 squirrelCageFrame[j] = 0;
13355 }
13356 else
13357 {
13358 squirrelCageFrame[j] = 2;
13359 }
13360 }
13361 }
13362 else if (squirrelCageFrame[j] >= 4 && squirrelCageFrame[j] <= 8)
13363 {
13365 if (squirrelCageFrameCounter[j] >= 5)
13366 {
13369 }
13370 }
13371 else if (squirrelCageFrame[j] == 9)
13372 {
13374 if (squirrelCageFrameCounter[j] <= rand.Next(30, 900))
13375 {
13376 continue;
13377 }
13378 if (rand.Next(3) != 0)
13379 {
13380 int num5 = rand.Next(7);
13381 if (num5 == 0)
13382 {
13383 squirrelCageFrame[j] = 13;
13384 }
13385 else if (num5 <= 2)
13386 {
13387 squirrelCageFrame[j] = 11;
13388 }
13389 else
13390 {
13391 squirrelCageFrame[j] = 10;
13392 }
13393 }
13395 }
13396 else if (squirrelCageFrame[j] == 10)
13397 {
13399 if (squirrelCageFrameCounter[j] >= 10)
13400 {
13402 squirrelCageFrame[j] = 9;
13403 }
13404 }
13405 else if (squirrelCageFrame[j] == 11 || squirrelCageFrame[j] == 12)
13406 {
13408 if (squirrelCageFrameCounter[j] < 5)
13409 {
13410 continue;
13411 }
13413 if (squirrelCageFrame[j] > 12)
13414 {
13415 if (rand.Next(5) != 0)
13416 {
13417 squirrelCageFrame[j] = 11;
13418 }
13419 else
13420 {
13421 squirrelCageFrame[j] = 9;
13422 }
13423 }
13425 }
13426 else if (squirrelCageFrame[j] >= 13)
13427 {
13429 if (squirrelCageFrameCounter[j] >= 5)
13430 {
13433 }
13434 if (squirrelCageFrame[j] > 17)
13435 {
13436 squirrelCageFrame[j] = 0;
13437 }
13438 }
13439 }
13440 for (int k = 0; k < cageFrames; k++)
13441 {
13442 if (squirrelCageFrameOrange[k] == 0)
13443 {
13445 if (squirrelCageFrameCounterOrange[k] <= rand.Next(30, 900))
13446 {
13447 continue;
13448 }
13449 if (rand.Next(3) != 0)
13450 {
13451 int num2 = rand.Next(7);
13452 if (num2 == 0)
13453 {
13455 }
13456 else if (num2 <= 2)
13457 {
13459 }
13460 else
13461 {
13463 }
13464 }
13466 }
13467 else if (squirrelCageFrameOrange[k] == 1)
13468 {
13471 {
13474 }
13475 }
13476 else if (squirrelCageFrameOrange[k] >= 2 && squirrelCageFrameOrange[k] <= 3)
13477 {
13480 {
13483 }
13484 if (squirrelCageFrameOrange[k] > 3)
13485 {
13486 if (rand.Next(5) == 0)
13487 {
13489 }
13490 else
13491 {
13493 }
13494 }
13495 }
13496 else if (squirrelCageFrameOrange[k] >= 4 && squirrelCageFrameOrange[k] <= 8)
13497 {
13500 {
13503 }
13504 }
13505 else if (squirrelCageFrameOrange[k] == 9)
13506 {
13508 if (squirrelCageFrameCounterOrange[k] <= rand.Next(30, 900))
13509 {
13510 continue;
13511 }
13512 if (rand.Next(3) != 0)
13513 {
13514 int num3 = rand.Next(7);
13515 if (num3 == 0)
13516 {
13518 }
13519 else if (num3 <= 2)
13520 {
13522 }
13523 else
13524 {
13526 }
13527 }
13529 }
13530 else if (squirrelCageFrameOrange[k] == 10)
13531 {
13534 {
13537 }
13538 }
13539 else if (squirrelCageFrameOrange[k] == 11 || squirrelCageFrameOrange[k] == 12)
13540 {
13543 {
13544 continue;
13545 }
13547 if (squirrelCageFrameOrange[k] > 12)
13548 {
13549 if (rand.Next(5) != 0)
13550 {
13552 }
13553 else
13554 {
13556 }
13557 }
13559 }
13560 else if (squirrelCageFrameOrange[k] >= 13)
13561 {
13564 {
13567 }
13568 if (squirrelCageFrameOrange[k] > 17)
13569 {
13571 }
13572 }
13573 }
13574 for (int l = 0; l < cageFrames; l++)
13575 {
13576 if (mallardCageFrame[l] == 0 || mallardCageFrame[l] == 4)
13577 {
13579 if (mallardCageFrameCounter[l] <= rand.Next(45, 2700))
13580 {
13581 continue;
13582 }
13583 if ((mallardCageFrame[l] == 0 && rand.Next(3) != 0) || (mallardCageFrame[l] == 4 && rand.Next(5) == 0))
13584 {
13585 if (rand.Next(6) == 0)
13586 {
13587 mallardCageFrame[l] = 5;
13588 }
13589 else if (rand.Next(3) == 0)
13590 {
13591 if (mallardCageFrame[l] == 4)
13592 {
13593 mallardCageFrame[l] = 0;
13594 }
13595 else
13596 {
13597 mallardCageFrame[l] = 4;
13598 }
13599 }
13600 else
13601 {
13602 mallardCageFrame[l] = 1;
13603 }
13604 }
13606 }
13607 else if (mallardCageFrame[l] >= 1 && mallardCageFrame[l] <= 3)
13608 {
13610 if (mallardCageFrameCounter[l] >= 5)
13611 {
13614 }
13615 if (mallardCageFrame[l] > 3)
13616 {
13617 if (rand.Next(5) == 0)
13618 {
13619 mallardCageFrame[l] = 0;
13620 }
13621 else
13622 {
13623 mallardCageFrame[l] = 1;
13624 }
13625 }
13626 }
13627 else if (mallardCageFrame[l] >= 5 && mallardCageFrame[l] <= 11)
13628 {
13630 if (mallardCageFrameCounter[l] >= 5)
13631 {
13634 }
13635 }
13636 else if (mallardCageFrame[l] == 12 || mallardCageFrame[l] == 16)
13637 {
13639 if (mallardCageFrameCounter[l] <= rand.Next(45, 2700))
13640 {
13641 continue;
13642 }
13643 if ((mallardCageFrame[l] == 12 && rand.Next(3) != 0) || (mallardCageFrame[l] == 16 && rand.Next(5) == 0))
13644 {
13645 if (rand.Next(6) == 0)
13646 {
13647 mallardCageFrame[l] = 17;
13648 }
13649 else if (rand.Next(3) == 0)
13650 {
13651 if (mallardCageFrame[l] == 16)
13652 {
13653 mallardCageFrame[l] = 12;
13654 }
13655 else
13656 {
13657 mallardCageFrame[l] = 16;
13658 }
13659 }
13660 else
13661 {
13662 mallardCageFrame[l] = 13;
13663 }
13664 }
13666 }
13667 else if (mallardCageFrame[l] >= 13 && mallardCageFrame[l] <= 15)
13668 {
13670 if (mallardCageFrameCounter[l] < 5)
13671 {
13672 continue;
13673 }
13675 if (mallardCageFrame[l] > 15)
13676 {
13677 if (rand.Next(5) != 0)
13678 {
13679 mallardCageFrame[l] = 12;
13680 }
13681 else
13682 {
13683 mallardCageFrame[l] = 13;
13684 }
13685 }
13687 }
13688 else if (mallardCageFrame[l] >= 17)
13689 {
13691 if (mallardCageFrameCounter[l] >= 5)
13692 {
13695 }
13696 if (mallardCageFrame[l] > 23)
13697 {
13698 mallardCageFrame[l] = 0;
13699 }
13700 }
13701 }
13702 for (int m = 0; m < cageFrames; m++)
13703 {
13704 if (duckCageFrame[m] == 0 || duckCageFrame[m] == 4)
13705 {
13707 if (duckCageFrameCounter[m] <= rand.Next(45, 2700))
13708 {
13709 continue;
13710 }
13711 if ((duckCageFrame[m] == 0 && rand.Next(3) != 0) || (duckCageFrame[m] == 4 && rand.Next(5) == 0))
13712 {
13713 if (rand.Next(6) == 0)
13714 {
13715 duckCageFrame[m] = 5;
13716 }
13717 else if (rand.Next(3) == 0)
13718 {
13719 if (duckCageFrame[m] == 4)
13720 {
13721 duckCageFrame[m] = 0;
13722 }
13723 else
13724 {
13725 duckCageFrame[m] = 4;
13726 }
13727 }
13728 else
13729 {
13730 duckCageFrame[m] = 1;
13731 }
13732 }
13734 }
13735 else if (duckCageFrame[m] >= 1 && duckCageFrame[m] <= 3)
13736 {
13738 if (duckCageFrameCounter[m] >= 5)
13739 {
13741 duckCageFrame[m]++;
13742 }
13743 if (duckCageFrame[m] > 3)
13744 {
13745 if (rand.Next(5) == 0)
13746 {
13747 duckCageFrame[m] = 0;
13748 }
13749 else
13750 {
13751 duckCageFrame[m] = 1;
13752 }
13753 }
13754 }
13755 else if (duckCageFrame[m] >= 5 && duckCageFrame[m] <= 11)
13756 {
13758 if (duckCageFrameCounter[m] >= 5)
13759 {
13761 duckCageFrame[m]++;
13762 }
13763 }
13764 else if (duckCageFrame[m] == 12 || duckCageFrame[m] == 16)
13765 {
13767 if (duckCageFrameCounter[m] <= rand.Next(45, 2700))
13768 {
13769 continue;
13770 }
13771 if ((duckCageFrame[m] == 12 && rand.Next(3) != 0) || (duckCageFrame[m] == 16 && rand.Next(5) == 0))
13772 {
13773 if (rand.Next(6) == 0)
13774 {
13775 duckCageFrame[m] = 17;
13776 }
13777 else if (rand.Next(3) == 0)
13778 {
13779 if (duckCageFrame[m] == 16)
13780 {
13781 duckCageFrame[m] = 12;
13782 }
13783 else
13784 {
13785 duckCageFrame[m] = 16;
13786 }
13787 }
13788 else
13789 {
13790 duckCageFrame[m] = 13;
13791 }
13792 }
13794 }
13795 else if (duckCageFrame[m] >= 13 && duckCageFrame[m] <= 15)
13796 {
13798 if (duckCageFrameCounter[m] < 5)
13799 {
13800 continue;
13801 }
13802 duckCageFrame[m]++;
13803 if (duckCageFrame[m] > 15)
13804 {
13805 if (rand.Next(5) != 0)
13806 {
13807 duckCageFrame[m] = 12;
13808 }
13809 else
13810 {
13811 duckCageFrame[m] = 13;
13812 }
13813 }
13815 }
13816 else if (duckCageFrame[m] >= 17)
13817 {
13819 if (duckCageFrameCounter[m] >= 5)
13820 {
13822 duckCageFrame[m]++;
13823 }
13824 if (duckCageFrame[m] > 23)
13825 {
13826 duckCageFrame[m] = 0;
13827 }
13828 }
13829 }
13830 for (int n = 0; n < cageFrames; n++)
13831 {
13833 bool flag = grebeCageFrame[n] == 0 || grebeCageFrame[n] == 7;
13834 bool num50 = grebeCageFrame[n] == 16 || grebeCageFrame[n] == 20;
13835 int num24 = 5;
13836 if (flag)
13837 {
13838 num24 = rand.Next(300, 400);
13839 }
13840 if (num50)
13841 {
13842 num24 = rand.Next(480, 600);
13843 }
13845 {
13846 continue;
13847 }
13849 if (grebeCageFrame[n] >= 25 && grebeCageFrame[n] <= 27)
13850 {
13851 grebeCageFrame[n]++;
13852 if (grebeCageFrame[n] > 27)
13853 {
13854 if (rand.Next(5) == 0)
13855 {
13856 grebeCageFrame[n] = 7;
13857 }
13858 else
13859 {
13860 grebeCageFrame[n] = 25;
13861 }
13862 }
13863 }
13864 else if (grebeCageFrame[n] >= 22 && grebeCageFrame[n] <= 24)
13865 {
13866 grebeCageFrame[n]++;
13867 if (grebeCageFrame[n] > 24)
13868 {
13869 if (rand.Next(5) == 0)
13870 {
13871 grebeCageFrame[n] = 0;
13872 }
13873 else
13874 {
13875 grebeCageFrame[n] = 22;
13876 }
13877 }
13878 }
13879 else if (grebeCageFrame[n] == 0 && rand.Next(3) == 0)
13880 {
13881 grebeCageFrame[n] = ((rand.Next(2) == 0) ? 22 : 14);
13882 }
13883 else if (grebeCageFrame[n] == 7 && rand.Next(3) == 0)
13884 {
13885 grebeCageFrame[n] = ((rand.Next(2) == 0) ? 25 : 18);
13886 }
13887 else if (grebeCageFrame[n] == 13 || grebeCageFrame[n] == 17)
13888 {
13889 grebeCageFrame[n] = 0;
13890 }
13891 else if (grebeCageFrame[n] == 21)
13892 {
13893 grebeCageFrame[n] = 7;
13894 }
13895 else
13896 {
13897 grebeCageFrame[n]++;
13898 }
13899 }
13900 for (int num33 = 0; num33 < cageFrames; num33++)
13901 {
13903 bool flag2 = seagullCageFrame[num33] == 0 || seagullCageFrame[num33] == 14;
13904 bool flag3 = seagullCageFrame[num33] >= 15 && seagullCageFrame[num33] <= 18;
13905 bool num51 = seagullCageFrame[num33] >= 9 && seagullCageFrame[num33] <= 13;
13906 int num46 = 6;
13907 if (flag2)
13908 {
13909 num46 = rand.Next(180, 250);
13910 }
13911 if (flag3)
13912 {
13913 num46 = 66;
13914 }
13915 if (num51)
13916 {
13917 num46 = 78;
13918 }
13920 {
13922 if (seagullCageFrame[num33] == 0 && rand.Next(3) == 0)
13923 {
13925 continue;
13926 }
13927 if (seagullCageFrame[num33] == 14)
13928 {
13929 if (rand.Next(2) == 0)
13930 {
13931 seagullCageFrame[num33] = 15;
13932 }
13933 else
13934 {
13935 seagullCageFrame[num33] = 19;
13936 }
13937 continue;
13938 }
13939 if (seagullCageFrame[num33] == 9)
13940 {
13942 continue;
13943 }
13944 if (seagullCageFrame[num33] == 8 || seagullCageFrame[num33] == 15)
13945 {
13946 seagullCageFrame[num33] = 14;
13947 continue;
13948 }
13950 if (seagullCageFrame[num33] > 26)
13951 {
13953 }
13954 }
13955 else if (seagullCageFrame[num33] >= 15 && seagullCageFrame[num33] <= 18)
13956 {
13958 if (num47 > 60)
13959 {
13960 seagullCageFrame[num33] = 15;
13961 }
13962 else if (num47 > 54)
13963 {
13964 seagullCageFrame[num33] = 16;
13965 }
13966 else if (num47 > 48)
13967 {
13968 seagullCageFrame[num33] = 17;
13969 }
13970 else if (num47 > 42)
13971 {
13972 seagullCageFrame[num33] = 18;
13973 }
13974 else if (num47 > 36)
13975 {
13976 seagullCageFrame[num33] = 17;
13977 }
13978 else if (num47 > 30)
13979 {
13980 seagullCageFrame[num33] = 16;
13981 }
13982 else if (num47 > 24)
13983 {
13984 seagullCageFrame[num33] = 17;
13985 }
13986 else if (num47 > 18)
13987 {
13988 seagullCageFrame[num33] = 18;
13989 }
13990 else if (num47 > 12)
13991 {
13992 seagullCageFrame[num33] = 17;
13993 }
13994 else if (num47 > 6)
13995 {
13996 seagullCageFrame[num33] = 16;
13997 }
13998 else
13999 {
14000 seagullCageFrame[num33] = 15;
14001 }
14002 }
14003 else if (seagullCageFrame[num33] >= 9 && seagullCageFrame[num33] <= 13)
14004 {
14006 if (num48 > 72)
14007 {
14009 }
14010 else if (num48 > 66)
14011 {
14012 seagullCageFrame[num33] = 10;
14013 }
14014 else if (num48 > 60)
14015 {
14016 seagullCageFrame[num33] = 11;
14017 }
14018 else if (num48 > 54)
14019 {
14020 seagullCageFrame[num33] = 12;
14021 }
14022 else if (num48 > 48)
14023 {
14024 seagullCageFrame[num33] = 13;
14025 }
14026 else if (num48 > 42)
14027 {
14028 seagullCageFrame[num33] = 12;
14029 }
14030 else if (num48 > 36)
14031 {
14032 seagullCageFrame[num33] = 11;
14033 }
14034 else if (num48 > 30)
14035 {
14036 seagullCageFrame[num33] = 12;
14037 }
14038 else if (num48 > 24)
14039 {
14040 seagullCageFrame[num33] = 13;
14041 }
14042 else if (num48 > 18)
14043 {
14044 seagullCageFrame[num33] = 12;
14045 }
14046 else if (num48 > 12)
14047 {
14048 seagullCageFrame[num33] = 11;
14049 }
14050 else if (num48 > 6)
14051 {
14052 seagullCageFrame[num33] = 10;
14053 }
14054 else
14055 {
14057 }
14058 }
14059 }
14060 for (int num49 = 0; num49 < cageFrames; num49++)
14061 {
14062 if (birdCageFrame[num49] == 0)
14063 {
14065 if (birdCageFrameCounter[num49] <= rand.Next(30, 2700))
14066 {
14067 continue;
14068 }
14069 if (rand.Next(3) != 0)
14070 {
14071 if (rand.Next(3) != 0)
14072 {
14073 birdCageFrame[num49] = 2;
14074 }
14075 else
14076 {
14077 birdCageFrame[num49] = 1;
14078 }
14079 }
14081 }
14082 else if (birdCageFrame[num49] == 1)
14083 {
14085 if (birdCageFrameCounter[num49] > rand.Next(900, 18000) && rand.Next(3) == 0)
14086 {
14088 birdCageFrame[num49] = 0;
14089 }
14090 }
14091 else if (birdCageFrame[num49] >= 2 && birdCageFrame[num49] <= 5)
14092 {
14094 if (birdCageFrameCounter[num49] >= 5)
14095 {
14097 if (birdCageFrame[num49] == 3 && rand.Next(3) == 0)
14098 {
14099 birdCageFrame[num49] = 13;
14100 }
14101 else
14102 {
14104 }
14105 }
14106 }
14107 else if (birdCageFrame[num49] == 6)
14108 {
14110 if (birdCageFrameCounter[num49] <= rand.Next(45, 2700))
14111 {
14112 continue;
14113 }
14114 if (rand.Next(3) != 0)
14115 {
14116 if (rand.Next(6) == 0)
14117 {
14118 birdCageFrame[num49] = 7;
14119 }
14120 else if (rand.Next(6) == 0)
14121 {
14122 birdCageFrame[num49] = 11;
14123 }
14124 }
14126 }
14127 else if (birdCageFrame[num49] >= 7 && birdCageFrame[num49] <= 10)
14128 {
14130 if (birdCageFrameCounter[num49] >= 5)
14131 {
14133 if (birdCageFrame[num49] > 10)
14134 {
14135 birdCageFrame[num49] = 0;
14136 }
14138 }
14139 }
14140 else if (birdCageFrame[num49] >= 11 && birdCageFrame[num49] <= 13)
14141 {
14143 if (birdCageFrameCounter[num49] >= 5)
14144 {
14147 }
14148 }
14149 else if (birdCageFrame[num49] == 14)
14150 {
14152 if (birdCageFrameCounter[num49] > rand.Next(5, 600))
14153 {
14154 if (rand.Next(20) == 0)
14155 {
14156 birdCageFrame[num49] = 16;
14157 }
14158 else if (rand.Next(20) == 0)
14159 {
14160 birdCageFrame[num49] = 4;
14161 }
14162 else
14163 {
14164 birdCageFrame[num49] = 15;
14165 }
14167 }
14168 }
14169 else if (birdCageFrame[num49] == 15)
14170 {
14172 if (birdCageFrameCounter[num49] >= 10)
14173 {
14175 birdCageFrame[num49] = 14;
14176 }
14177 }
14178 else
14179 {
14180 if (birdCageFrame[num49] < 16 || birdCageFrame[num49] > 18)
14181 {
14182 continue;
14183 }
14185 if (birdCageFrameCounter[num49] >= 5)
14186 {
14188 if (birdCageFrame[num49] > 18)
14189 {
14190 birdCageFrame[num49] = 0;
14191 }
14193 }
14194 }
14195 }
14196 for (int num6 = 0; num6 < cageFrames; num6++)
14197 {
14198 if (blueBirdCageFrame[num6] == 0)
14199 {
14201 if (blueBirdCageFrameCounter[num6] <= rand.Next(30, 2700))
14202 {
14203 continue;
14204 }
14205 if (rand.Next(3) != 0)
14206 {
14207 if (rand.Next(3) != 0)
14208 {
14210 }
14211 else
14212 {
14214 }
14215 }
14217 }
14218 else if (blueBirdCageFrame[num6] == 1)
14219 {
14221 if (blueBirdCageFrameCounter[num6] > rand.Next(900, 18000) && rand.Next(3) == 0)
14222 {
14225 }
14226 }
14227 else if (blueBirdCageFrame[num6] >= 2 && blueBirdCageFrame[num6] <= 5)
14228 {
14231 {
14233 if (blueBirdCageFrame[num6] == 3 && rand.Next(3) == 0)
14234 {
14235 blueBirdCageFrame[num6] = 13;
14236 }
14237 else
14238 {
14240 }
14241 }
14242 }
14243 else if (blueBirdCageFrame[num6] == 6)
14244 {
14246 if (blueBirdCageFrameCounter[num6] <= rand.Next(45, 2700))
14247 {
14248 continue;
14249 }
14250 if (rand.Next(3) != 0)
14251 {
14252 if (rand.Next(6) == 0)
14253 {
14255 }
14256 else if (rand.Next(6) == 0)
14257 {
14258 blueBirdCageFrame[num6] = 11;
14259 }
14260 }
14262 }
14263 else if (blueBirdCageFrame[num6] >= 7 && blueBirdCageFrame[num6] <= 10)
14264 {
14267 {
14269 if (blueBirdCageFrame[num6] > 10)
14270 {
14272 }
14274 }
14275 }
14276 else if (blueBirdCageFrame[num6] >= 11 && blueBirdCageFrame[num6] <= 13)
14277 {
14280 {
14283 }
14284 }
14285 else if (blueBirdCageFrame[num6] == 14)
14286 {
14288 if (blueBirdCageFrameCounter[num6] > rand.Next(5, 600))
14289 {
14290 if (rand.Next(20) == 0)
14291 {
14292 blueBirdCageFrame[num6] = 16;
14293 }
14294 else if (rand.Next(20) == 0)
14295 {
14297 }
14298 else
14299 {
14300 blueBirdCageFrame[num6] = 15;
14301 }
14303 }
14304 }
14305 else if (blueBirdCageFrame[num6] == 15)
14306 {
14308 if (blueBirdCageFrameCounter[num6] >= 10)
14309 {
14311 blueBirdCageFrame[num6] = 14;
14312 }
14313 }
14314 else
14315 {
14316 if (blueBirdCageFrame[num6] < 16 || blueBirdCageFrame[num6] > 18)
14317 {
14318 continue;
14319 }
14322 {
14324 if (blueBirdCageFrame[num6] > 18)
14325 {
14327 }
14329 }
14330 }
14331 }
14332 for (int num7 = 0; num7 < cageFrames; num7++)
14333 {
14334 if (redBirdCageFrame[num7] == 0)
14335 {
14337 if (redBirdCageFrameCounter[num7] <= rand.Next(30, 2700))
14338 {
14339 continue;
14340 }
14341 if (rand.Next(3) != 0)
14342 {
14343 if (rand.Next(3) != 0)
14344 {
14346 }
14347 else
14348 {
14350 }
14351 }
14353 }
14354 else if (redBirdCageFrame[num7] == 1)
14355 {
14357 if (redBirdCageFrameCounter[num7] > rand.Next(900, 18000) && rand.Next(3) == 0)
14358 {
14361 }
14362 }
14363 else if (redBirdCageFrame[num7] >= 2 && redBirdCageFrame[num7] <= 5)
14364 {
14366 if (redBirdCageFrameCounter[num7] >= 5)
14367 {
14369 if (redBirdCageFrame[num7] == 3 && rand.Next(3) == 0)
14370 {
14371 redBirdCageFrame[num7] = 13;
14372 }
14373 else
14374 {
14376 }
14377 }
14378 }
14379 else if (redBirdCageFrame[num7] == 6)
14380 {
14382 if (redBirdCageFrameCounter[num7] <= rand.Next(45, 2700))
14383 {
14384 continue;
14385 }
14386 if (rand.Next(3) != 0)
14387 {
14388 if (rand.Next(6) == 0)
14389 {
14391 }
14392 else if (rand.Next(6) == 0)
14393 {
14394 redBirdCageFrame[num7] = 11;
14395 }
14396 }
14398 }
14399 else if (redBirdCageFrame[num7] >= 7 && redBirdCageFrame[num7] <= 10)
14400 {
14402 if (redBirdCageFrameCounter[num7] >= 5)
14403 {
14405 if (redBirdCageFrame[num7] > 10)
14406 {
14408 }
14410 }
14411 }
14412 else if (redBirdCageFrame[num7] >= 11 && redBirdCageFrame[num7] <= 13)
14413 {
14415 if (redBirdCageFrameCounter[num7] >= 5)
14416 {
14419 }
14420 }
14421 else if (redBirdCageFrame[num7] == 14)
14422 {
14424 if (redBirdCageFrameCounter[num7] > rand.Next(5, 600))
14425 {
14426 if (rand.Next(20) == 0)
14427 {
14428 redBirdCageFrame[num7] = 16;
14429 }
14430 else if (rand.Next(20) == 0)
14431 {
14433 }
14434 else
14435 {
14436 redBirdCageFrame[num7] = 15;
14437 }
14439 }
14440 }
14441 else if (redBirdCageFrame[num7] == 15)
14442 {
14444 if (redBirdCageFrameCounter[num7] >= 10)
14445 {
14447 redBirdCageFrame[num7] = 14;
14448 }
14449 }
14450 else
14451 {
14452 if (redBirdCageFrame[num7] < 16 || redBirdCageFrame[num7] > 18)
14453 {
14454 continue;
14455 }
14457 if (redBirdCageFrameCounter[num7] >= 5)
14458 {
14460 if (redBirdCageFrame[num7] > 18)
14461 {
14463 }
14465 }
14466 }
14467 }
14468 for (int num8 = 0; num8 < cageFrames; num8++)
14469 {
14470 if (macawCageFrame[num8] == 0)
14471 {
14473 if (macawCageFrameCounter[num8] <= rand.Next(300, 2700))
14474 {
14475 continue;
14476 }
14477 if (rand.Next(3) != 0)
14478 {
14479 if (rand.Next(3) != 0)
14480 {
14481 macawCageFrame[num8] = 16;
14482 }
14483 else
14484 {
14485 macawCageFrame[num8] = 1;
14486 }
14487 }
14489 }
14490 else if (macawCageFrame[num8] >= 1 && macawCageFrame[num8] <= 5)
14491 {
14493 if (macawCageFrameCounter[num8] > 5)
14494 {
14497 if (macawCageFrame[num8] > 5)
14498 {
14499 macawCageFrame[num8] = 6;
14500 }
14501 }
14502 }
14503 else if (macawCageFrame[num8] >= 16 && macawCageFrame[num8] <= 19)
14504 {
14506 if (macawCageFrameCounter[num8] > 6)
14507 {
14510 if (macawCageFrame[num8] > 19)
14511 {
14512 macawCageFrame[num8] = ((rand.Next(3) != 0) ? 16 : 0);
14513 }
14514 }
14515 }
14516 else if (macawCageFrame[num8] == 6)
14517 {
14519 if (macawCageFrameCounter[num8] <= rand.Next(300, 2700))
14520 {
14521 continue;
14522 }
14523 if (rand.Next(3) != 0)
14524 {
14525 if (rand.Next(3) != 0)
14526 {
14527 macawCageFrame[num8] = 7;
14528 }
14529 else
14530 {
14531 macawCageFrame[num8] = 11;
14532 }
14533 }
14535 }
14536 else if (macawCageFrame[num8] >= 11 && macawCageFrame[num8] <= 15)
14537 {
14539 if (macawCageFrameCounter[num8] > 5)
14540 {
14543 if (macawCageFrame[num8] > 15)
14544 {
14545 macawCageFrame[num8] = 0;
14546 }
14547 }
14548 }
14549 else
14550 {
14551 if (macawCageFrame[num8] < 7 || macawCageFrame[num8] > 10)
14552 {
14553 continue;
14554 }
14556 if (macawCageFrameCounter[num8] > 6)
14557 {
14560 if (macawCageFrame[num8] > 10)
14561 {
14562 macawCageFrame[num8] = ((rand.Next(3) == 0) ? 6 : 7);
14563 }
14564 }
14565 }
14566 }
14567 for (int num9 = 0; num9 < 2; num9++)
14568 {
14569 for (int num10 = 0; num10 < cageFrames; num10++)
14570 {
14572 {
14574 if (scorpionCageFrameCounter[num9, num10] <= rand.Next(30, 3600))
14575 {
14576 continue;
14577 }
14578 if (scorpionCageFrame[num9, num10] == 7)
14579 {
14581 }
14582 else if (rand.Next(3) == 0)
14583 {
14584 if (rand.Next(7) == 0)
14585 {
14587 }
14588 else if (rand.Next(4) == 0)
14589 {
14591 }
14592 else if (rand.Next(3) == 0)
14593 {
14595 }
14596 else
14597 {
14599 }
14600 }
14602 }
14603 else if (scorpionCageFrame[num9, num10] >= 1 && scorpionCageFrame[num9, num10] <= 2)
14604 {
14607 {
14610 }
14611 }
14612 else if (scorpionCageFrame[num9, num10] >= 8 && scorpionCageFrame[num9, num10] <= 10)
14613 {
14616 {
14619 }
14620 }
14621 else if (scorpionCageFrame[num9, num10] == 11)
14622 {
14624 if (scorpionCageFrameCounter[num9, num10] > rand.Next(45, 5400))
14625 {
14626 if (rand.Next(6) == 0)
14627 {
14629 }
14631 }
14632 }
14633 else if (scorpionCageFrame[num9, num10] >= 12 && scorpionCageFrame[num9, num10] <= 13)
14634 {
14637 {
14640 if (scorpionCageFrame[num9, num10] > 13)
14641 {
14643 }
14644 }
14645 }
14646 else if (scorpionCageFrame[num9, num10] >= 14 && scorpionCageFrame[num9, num10] <= 15)
14647 {
14650 {
14653 if (scorpionCageFrame[num9, num10] > 15)
14654 {
14656 }
14657 if (rand.Next(5) == 0)
14658 {
14660 }
14661 }
14662 }
14663 else if (scorpionCageFrame[num9, num10] == 4 || scorpionCageFrame[num9, num10] == 3)
14664 {
14666 if (scorpionCageFrameCounter[num9, num10] <= rand.Next(30, 3600))
14667 {
14668 continue;
14669 }
14670 if (scorpionCageFrame[num9, num10] == 3)
14671 {
14673 }
14674 else if (rand.Next(3) == 0)
14675 {
14676 if (rand.Next(5) == 0)
14677 {
14679 }
14680 else if (rand.Next(3) == 0)
14681 {
14683 }
14684 else
14685 {
14687 }
14688 }
14690 }
14691 else if (scorpionCageFrame[num9, num10] >= 5 && scorpionCageFrame[num9, num10] <= 6)
14692 {
14695 {
14698 if (scorpionCageFrame[num9, num10] > 7)
14699 {
14701 }
14702 }
14703 }
14704 else
14705 {
14707 {
14708 continue;
14709 }
14712 {
14715 if (scorpionCageFrame[num9, num10] > 17)
14716 {
14718 }
14719 if (rand.Next(5) == 0)
14720 {
14722 }
14723 }
14724 }
14725 }
14726 }
14727 for (int num11 = 0; num11 < cageFrames; num11++)
14728 {
14729 if (penguinCageFrame[num11] == 0)
14730 {
14732 if (penguinCageFrameCounter[num11] <= rand.Next(30, 1800))
14733 {
14734 continue;
14735 }
14736 if (rand.Next(2) == 0)
14737 {
14738 if (rand.Next(10) == 0)
14739 {
14741 }
14742 else if (rand.Next(7) == 0)
14743 {
14744 penguinCageFrame[num11] = 15;
14745 }
14746 else if (rand.Next(3) == 0)
14747 {
14749 }
14750 else
14751 {
14753 }
14754 }
14756 }
14757 else if (penguinCageFrame[num11] == 1)
14758 {
14760 if (penguinCageFrameCounter[num11] >= 10)
14761 {
14764 }
14765 }
14766 else if (penguinCageFrame[num11] >= 2 && penguinCageFrame[num11] <= 3)
14767 {
14770 {
14771 continue;
14772 }
14775 if (penguinCageFrame[num11] > 3)
14776 {
14777 if (rand.Next(3) == 0)
14778 {
14780 }
14781 else
14782 {
14784 }
14785 }
14786 }
14787 else if (penguinCageFrame[num11] >= 4 && penguinCageFrame[num11] <= 6)
14788 {
14790 if (penguinCageFrameCounter[num11] >= 10)
14791 {
14794 }
14795 }
14796 else if (penguinCageFrame[num11] == 15)
14797 {
14799 if (penguinCageFrameCounter[num11] > rand.Next(10, 1800))
14800 {
14801 if (rand.Next(2) == 0)
14802 {
14804 }
14806 }
14807 }
14808 else if (penguinCageFrame[num11] == 8)
14809 {
14811 if (penguinCageFrameCounter[num11] <= rand.Next(30, 3600))
14812 {
14813 continue;
14814 }
14815 if (rand.Next(2) == 0)
14816 {
14817 if (rand.Next(10) == 0)
14818 {
14819 penguinCageFrame[num11] = 12;
14820 }
14821 else if (rand.Next(7) == 0)
14822 {
14824 }
14825 else if (rand.Next(3) == 0)
14826 {
14827 penguinCageFrame[num11] = 10;
14828 }
14829 else
14830 {
14832 }
14833 }
14835 }
14836 else if (penguinCageFrame[num11] == 9)
14837 {
14839 if (penguinCageFrameCounter[num11] >= 10)
14840 {
14843 }
14844 }
14845 else if (penguinCageFrame[num11] >= 10 && penguinCageFrame[num11] <= 11)
14846 {
14849 {
14850 continue;
14851 }
14854 if (penguinCageFrame[num11] > 3)
14855 {
14856 if (rand.Next(3) == 0)
14857 {
14859 }
14860 else
14861 {
14862 penguinCageFrame[num11] = 10;
14863 }
14864 }
14865 }
14866 else if (penguinCageFrame[num11] >= 12 && penguinCageFrame[num11] <= 14)
14867 {
14869 if (penguinCageFrameCounter[num11] >= 10)
14870 {
14873 }
14874 }
14875 else
14876 {
14877 if (penguinCageFrame[num11] != 7)
14878 {
14879 continue;
14880 }
14882 if (penguinCageFrameCounter[num11] > rand.Next(10, 3600))
14883 {
14884 if (rand.Next(2) == 0)
14885 {
14887 }
14889 }
14890 }
14891 }
14892 for (int num12 = 0; num12 < cageFrames; num12++)
14893 {
14895 bool num52 = turtleCageFrame[num12] == 0 || turtleCageFrame[num12] == 15 || turtleCageFrame[num12] == 31;
14896 int num13 = 8;
14897 if (num52)
14898 {
14899 num13 = rand.Next(180, 250);
14900 }
14902 {
14903 continue;
14904 }
14906 if (turtleCageFrame[num12] == 29)
14907 {
14909 continue;
14910 }
14911 if (turtleCageFrame[num12] == 15 && rand.Next(3) == 0)
14912 {
14913 turtleCageFrame[num12] = 30;
14914 continue;
14915 }
14917 if (turtleCageFrame[num12] > 32)
14918 {
14919 turtleCageFrame[num12] = 15;
14920 }
14921 }
14922 for (int num14 = 0; num14 < cageFrames; num14++)
14923 {
14925 bool flag4 = seahorseCageFrame[num14] == 0 || seahorseCageFrame[num14] == 13;
14927 bool flag5 = seahorseCageFrame[num14] >= 25;
14928 int num15 = 7;
14929 if (flag4)
14930 {
14931 num15 = rand.Next(220, 340);
14932 }
14933 if (num53)
14934 {
14935 num15 = 10;
14936 }
14937 if (flag5)
14938 {
14939 num15 = 6;
14940 }
14942 {
14943 continue;
14944 }
14946 if (seahorseCageFrame[num14] == 0 && rand.Next(2) == 0)
14947 {
14949 continue;
14950 }
14951 if (seahorseCageFrame[num14] == 24)
14952 {
14954 continue;
14955 }
14957 if (seahorseCageFrame[num14] > 33)
14958 {
14960 }
14961 }
14963 for (int num16 = 0; num16 < cageFrames; num16++)
14964 {
14965 if (snailCageFrame[num16] >= 0 && snailCageFrame[num16] <= 13)
14966 {
14968 if (snailCageFrameCounter[num16] <= rand.Next(45, 3600))
14969 {
14970 continue;
14971 }
14972 if (snailCageFrame[num16] == 8 && rand.Next(2) == 0)
14973 {
14974 snailCageFrame[num16] = 14;
14975 }
14976 else if (snailCageFrame[num16] == 1 && rand.Next(3) == 0)
14977 {
14978 snailCageFrame[num16] = 19;
14979 }
14980 else if (snailCageFrame[num16] == 1 && rand.Next(3) == 0)
14981 {
14982 snailCageFrame[num16] = 20;
14983 }
14984 else
14985 {
14987 if (snailCageFrame[num16] > 13)
14988 {
14989 snailCageFrame[num16] = 0;
14990 }
14991 }
14993 }
14994 else if (snailCageFrame[num16] >= 14 && snailCageFrame[num16] <= 18)
14995 {
14997 if (snailCageFrameCounter[num16] >= 5)
14998 {
15001 }
15002 if (snailCageFrame[num16] > 18)
15003 {
15004 snailCageFrame[num16] = 20;
15005 }
15006 }
15007 else
15008 {
15009 if (snailCageFrame[num16] != 19 && snailCageFrame[num16] != 20)
15010 {
15011 continue;
15012 }
15014 if (snailCageFrameCounter[num16] <= rand.Next(60, 7200))
15015 {
15016 continue;
15017 }
15019 if (rand.Next(4) == 0)
15020 {
15021 if (rand.Next(3) == 0)
15022 {
15023 snailCageFrame[num16] = 2;
15024 }
15025 else if (snailCageFrame[num16] == 19)
15026 {
15027 snailCageFrame[num16] = 20;
15028 }
15029 else
15030 {
15031 snailCageFrame[num16] = 19;
15032 }
15033 }
15034 }
15035 }
15036 for (int num17 = 0; num17 < cageFrames; num17++)
15037 {
15038 if (snail2CageFrame[num17] >= 0 && snail2CageFrame[num17] <= 13)
15039 {
15041 if (snail2CageFrameCounter[num17] <= rand.Next(30, 2700))
15042 {
15043 continue;
15044 }
15045 if (snail2CageFrame[num17] == 8 && rand.Next(2) == 0)
15046 {
15047 snail2CageFrame[num17] = 14;
15048 }
15049 else if (snail2CageFrame[num17] == 1 && rand.Next(3) == 0)
15050 {
15051 snail2CageFrame[num17] = 19;
15052 }
15053 else if (snail2CageFrame[num17] == 1 && rand.Next(3) == 0)
15054 {
15055 snail2CageFrame[num17] = 20;
15056 }
15057 else
15058 {
15060 if (snail2CageFrame[num17] > 13)
15061 {
15063 }
15064 }
15066 }
15067 else if (snail2CageFrame[num17] >= 14 && snail2CageFrame[num17] <= 18)
15068 {
15070 if (snail2CageFrameCounter[num17] >= 5)
15071 {
15074 }
15075 if (snail2CageFrame[num17] > 18)
15076 {
15077 snail2CageFrame[num17] = 20;
15078 }
15079 }
15080 else
15081 {
15082 if (snail2CageFrame[num17] != 19 && snail2CageFrame[num17] != 20)
15083 {
15084 continue;
15085 }
15087 if (snail2CageFrameCounter[num17] <= rand.Next(45, 5400))
15088 {
15089 continue;
15090 }
15092 if (rand.Next(4) == 0)
15093 {
15094 if (rand.Next(3) == 0)
15095 {
15097 }
15098 else if (snail2CageFrame[num17] == 19)
15099 {
15100 snail2CageFrame[num17] = 20;
15101 }
15102 else
15103 {
15104 snail2CageFrame[num17] = 19;
15105 }
15106 }
15107 }
15108 }
15109 for (int num18 = 0; num18 < cageFrames; num18++)
15110 {
15111 if (frogCageFrame[num18] == 0)
15112 {
15114 if (frogCageFrameCounter[num18] > rand.Next(45, 3600))
15115 {
15116 if (rand.Next(10) == 0)
15117 {
15118 frogCageFrame[num18] = 1;
15119 }
15120 else
15121 {
15122 frogCageFrame[num18] = 12;
15123 }
15125 }
15126 }
15127 else if (frogCageFrame[num18] >= 1 && frogCageFrame[num18] <= 5)
15128 {
15130 if (frogCageFrameCounter[num18] >= 5)
15131 {
15134 }
15135 }
15136 else if (frogCageFrame[num18] >= 12 && frogCageFrame[num18] <= 17)
15137 {
15139 if (frogCageFrameCounter[num18] >= 5)
15140 {
15143 }
15144 if (frogCageFrame[num18] > 17)
15145 {
15146 if (rand.Next(3) == 0)
15147 {
15148 frogCageFrame[num18] = 0;
15149 }
15150 else
15151 {
15152 frogCageFrame[num18] = 12;
15153 }
15154 }
15155 }
15156 else if (frogCageFrame[num18] == 6)
15157 {
15159 if (frogCageFrameCounter[num18] > rand.Next(45, 3600))
15160 {
15161 if (rand.Next(10) == 0)
15162 {
15163 frogCageFrame[num18] = 7;
15164 }
15165 else
15166 {
15167 frogCageFrame[num18] = 18;
15168 }
15170 }
15171 }
15172 else if (frogCageFrame[num18] >= 7 && frogCageFrame[num18] <= 11)
15173 {
15175 if (frogCageFrameCounter[num18] >= 5)
15176 {
15179 if (frogCageFrame[num18] > 11)
15180 {
15181 frogCageFrame[num18] = 0;
15182 }
15183 }
15184 }
15185 else
15186 {
15187 if (frogCageFrame[num18] < 18 || frogCageFrame[num18] > 23)
15188 {
15189 continue;
15190 }
15192 if (frogCageFrameCounter[num18] >= 5)
15193 {
15196 }
15197 if (frogCageFrame[num18] > 17)
15198 {
15199 if (rand.Next(3) == 0)
15200 {
15201 frogCageFrame[num18] = 6;
15202 }
15203 else
15204 {
15205 frogCageFrame[num18] = 18;
15206 }
15207 }
15208 }
15209 }
15210 for (int num19 = 0; num19 < cageFrames; num19++)
15211 {
15212 if (mouseCageFrame[num19] >= 0 && mouseCageFrame[num19] <= 1)
15213 {
15215 if (mouseCageFrameCounter[num19] >= 5)
15216 {
15218 if (mouseCageFrame[num19] > 1)
15219 {
15220 mouseCageFrame[num19] = 0;
15221 }
15223 if (rand.Next(15) == 0)
15224 {
15225 mouseCageFrame[num19] = 4;
15226 }
15227 }
15228 }
15229 else if (mouseCageFrame[num19] >= 4 && mouseCageFrame[num19] <= 7)
15230 {
15232 if (mouseCageFrameCounter[num19] >= 5)
15233 {
15236 }
15237 if (mouseCageFrame[num19] > 7)
15238 {
15239 mouseCageFrame[num19] = 2;
15240 }
15241 }
15242 else if (mouseCageFrame[num19] >= 2 && mouseCageFrame[num19] <= 3)
15243 {
15245 if (mouseCageFrameCounter[num19] >= 5)
15246 {
15248 if (mouseCageFrame[num19] > 3)
15249 {
15250 mouseCageFrame[num19] = 2;
15251 }
15253 if (rand.Next(15) == 0)
15254 {
15255 mouseCageFrame[num19] = 8;
15256 }
15257 else if (rand.Next(15) == 0)
15258 {
15259 mouseCageFrame[num19] = 12;
15260 }
15261 }
15262 }
15263 else if (mouseCageFrame[num19] >= 8 && mouseCageFrame[num19] <= 11)
15264 {
15266 if (mouseCageFrameCounter[num19] >= 5)
15267 {
15270 }
15271 if (mouseCageFrame[num19] > 11)
15272 {
15273 mouseCageFrame[num19] = 0;
15274 }
15275 }
15276 else if (mouseCageFrame[num19] >= 12 && mouseCageFrame[num19] <= 13)
15277 {
15279 if (mouseCageFrameCounter[num19] >= 5)
15280 {
15283 }
15284 }
15285 else if (mouseCageFrame[num19] >= 14 && mouseCageFrame[num19] <= 17)
15286 {
15288 if (mouseCageFrameCounter[num19] >= 5)
15289 {
15292 if (mouseCageFrame[num19] > 17 && rand.Next(20) != 0)
15293 {
15294 mouseCageFrame[num19] = 14;
15295 }
15296 }
15297 }
15298 else
15299 {
15300 if (mouseCageFrame[num19] < 18 || mouseCageFrame[num19] > 19)
15301 {
15302 continue;
15303 }
15305 if (mouseCageFrameCounter[num19] >= 5)
15306 {
15309 if (mouseCageFrame[num19] > 19)
15310 {
15311 mouseCageFrame[num19] = 0;
15312 }
15313 }
15314 }
15315 }
15316 for (int num20 = 0; num20 < cageFrames; num20++)
15317 {
15319 if (wormCageFrameCounter[num20] < rand.Next(30, 91))
15320 {
15321 continue;
15322 }
15324 if (rand.Next(4) != 0)
15325 {
15326 continue;
15327 }
15329 if (wormCageFrame[num20] == 9 && rand.Next(2) == 0)
15330 {
15331 wormCageFrame[num20] = 0;
15332 }
15333 if (wormCageFrame[num20] > 18)
15334 {
15335 if (rand.Next(2) == 0)
15336 {
15337 wormCageFrame[num20] = 9;
15338 }
15339 else
15340 {
15341 wormCageFrame[num20] = 0;
15342 }
15343 }
15344 }
15345 int num21 = 0;
15346 for (int num22 = 0; num22 < 3; num22++)
15347 {
15348 switch (num22)
15349 {
15350 case 0:
15351 num21 = 24;
15352 break;
15353 case 1:
15354 num21 = 31;
15355 break;
15356 case 2:
15357 num21 = 34;
15358 break;
15359 }
15360 for (int num23 = 0; num23 < cageFrames; num23++)
15361 {
15362 if (++slugCageFrameCounter[num22, num23] >= rand.Next(5, 15))
15363 {
15365 if (++slugCageFrame[num22, num23] >= num21)
15366 {
15368 }
15369 }
15370 }
15371 }
15372 for (int num25 = 0; num25 < cageFrames; num25++)
15373 {
15375 {
15378 {
15380 if (grasshopperCageFrame[num25] > 1)
15381 {
15383 }
15385 if (rand.Next(15) == 0)
15386 {
15388 }
15389 }
15390 }
15391 else if (grasshopperCageFrame[num25] >= 2 && grasshopperCageFrame[num25] <= 5)
15392 {
15395 {
15398 }
15399 if (grasshopperCageFrame[num25] > 5)
15400 {
15402 }
15403 }
15404 else if (grasshopperCageFrame[num25] >= 6 && grasshopperCageFrame[num25] <= 7)
15405 {
15408 {
15410 if (grasshopperCageFrame[num25] > 7)
15411 {
15413 }
15415 if (rand.Next(15) == 0)
15416 {
15418 }
15419 }
15420 }
15421 else if (grasshopperCageFrame[num25] >= 8 && grasshopperCageFrame[num25] <= 11)
15422 {
15425 {
15428 }
15429 if (grasshopperCageFrame[num25] > 11)
15430 {
15432 }
15433 }
15434 }
15435 for (int num26 = 0; num26 < cageFrames; num26++)
15436 {
15438 bool num54 = maggotCageFrame[num26] == 0 || maggotCageFrame[num26] == 6 || maggotCageFrame[num26] == 18;
15439 int num27 = 8;
15440 if (num54)
15441 {
15442 num27 = rand.Next(100, 140);
15443 }
15445 {
15446 continue;
15447 }
15449 if (maggotCageFrame[num26] == 0)
15450 {
15451 if (rand.Next(3) == 0)
15452 {
15453 maggotCageFrame[num26] = 13;
15454 }
15455 else
15456 {
15458 }
15459 continue;
15460 }
15461 if (maggotCageFrame[num26] == 12)
15462 {
15464 continue;
15465 }
15467 if (maggotCageFrame[num26] > 23)
15468 {
15470 }
15471 }
15472 for (int num28 = 0; num28 < cageFrames; num28++)
15473 {
15476 int num29 = rand.Next(10, 12);
15477 if (ladybugCageFrame[num28] == 18)
15478 {
15479 num29 = rand.Next(160, 241);
15480 }
15481 else if (flag6)
15482 {
15483 num29 = rand.Next(198, 206);
15484 }
15485 else if (ladybugCageFrame[num28] >= 8 && ladybugCageFrame[num28] <= 16)
15486 {
15487 num29 = 5;
15488 }
15490 {
15491 continue;
15492 }
15494 if (ladybugCageFrame[num28] < 18)
15495 {
15496 if ((ladybugCageFrame[num28] == 2 || ladybugCageFrame[num28] == 5) && rand.Next(3) == 0)
15497 {
15498 ladybugCageFrame[num28] = 17;
15499 }
15500 else if (ladybugCageFrame[num28] == 3 || ladybugCageFrame[num28] == 12)
15501 {
15502 switch (rand.Next(3))
15503 {
15504 case 0:
15505 case 1:
15507 break;
15508 case 2:
15509 ladybugCageFrame[num28] = 13;
15510 break;
15511 }
15512 }
15513 else if (ladybugCageFrame[num28] == 7 || ladybugCageFrame[num28] == 16)
15514 {
15515 switch (rand.Next(3))
15516 {
15517 case 0:
15518 case 1:
15520 break;
15521 case 2:
15523 break;
15524 }
15525 }
15526 else
15527 {
15529 }
15530 }
15531 else
15532 {
15533 ladybugCageFrame[num28] = ((rand.Next(2) == 0) ? 13 : 4);
15534 }
15535 }
15536 for (int num30 = 0; num30 < cageFrames; num30++)
15537 {
15539 bool flag7 = ratCageFrame[num30] == 0 || ratCageFrame[num30] == 4;
15540 bool num55 = ratCageFrame[num30] == 8 || ratCageFrame[num30] == 9 || ratCageFrame[num30] == 10 || ratCageFrame[num30] == 11;
15541 bool flag8 = ratCageFrame[num30] > 11;
15542 int num31 = 5;
15543 if (flag7)
15544 {
15545 num31 = rand.Next(40, 70);
15546 }
15547 if (num55)
15548 {
15549 num31 = rand.Next(70, 110);
15550 }
15551 if (flag8)
15552 {
15553 num31 = 180;
15554 }
15556 {
15558 if (ratCageFrame[num30] == 0 && rand.Next(2) == 0)
15559 {
15560 if (rand.Next(3) != 0)
15561 {
15562 ratCageFrame[num30] = 12;
15563 }
15564 else
15565 {
15566 ratCageFrame[num30] = 8;
15567 }
15568 continue;
15569 }
15570 if (ratCageFrame[num30] == 4 && rand.Next(2) == 0)
15571 {
15572 ratCageFrame[num30] = 10;
15573 continue;
15574 }
15575 if (ratCageFrame[num30] == 7 || ratCageFrame[num30] == 9 || ratCageFrame[num30] == 12)
15576 {
15577 ratCageFrame[num30] = 0;
15578 continue;
15579 }
15580 if (ratCageFrame[num30] == 11)
15581 {
15582 ratCageFrame[num30] = 4;
15583 continue;
15584 }
15586 if (ratCageFrame[num30] > 16)
15587 {
15588 ratCageFrame[num30] = 0;
15589 }
15590 }
15591 else if (ratCageFrame[num30] > 11)
15592 {
15593 int num32 = ratCageFrameCounter[num30] % 90;
15594 if (num32 > 80)
15595 {
15596 ratCageFrame[num30] = 12;
15597 }
15598 else if (num32 > 70)
15599 {
15600 ratCageFrame[num30] = 13;
15601 }
15602 else if (num32 > 60)
15603 {
15604 ratCageFrame[num30] = 14;
15605 }
15606 else if (num32 > 50)
15607 {
15608 ratCageFrame[num30] = 15;
15609 }
15610 else if (num32 > 40)
15611 {
15612 ratCageFrame[num30] = 16;
15613 }
15614 else if (num32 > 30)
15615 {
15616 ratCageFrame[num30] = 15;
15617 }
15618 else if (num32 > 20)
15619 {
15620 ratCageFrame[num30] = 14;
15621 }
15622 else if (num32 > 10)
15623 {
15624 ratCageFrame[num30] = 13;
15625 }
15626 else
15627 {
15628 ratCageFrame[num30] = 12;
15629 }
15630 }
15631 else if (ratCageFrameCounter[num30] % 10 == 0)
15632 {
15633 if (ratCageFrame[num30] == 8 || ratCageFrame[num30] == 10)
15634 {
15636 }
15637 else if (ratCageFrame[num30] == 9 || ratCageFrame[num30] == 11)
15638 {
15640 }
15641 }
15642 }
15643 for (int num34 = 0; num34 < cageFrames; num34++)
15644 {
15648 int num35 = 5;
15649 if (flag9)
15650 {
15651 num35 = rand.Next(110, 210);
15652 }
15653 if (num56)
15654 {
15655 num35 = rand.Next(150, 260);
15656 }
15658 {
15659 continue;
15660 }
15662 if (waterStriderCageFrame[num34] == 0 && rand.Next(2) == 0)
15663 {
15665 continue;
15666 }
15667 if (waterStriderCageFrame[num34] == 8 && rand.Next(2) == 0)
15668 {
15670 continue;
15671 }
15673 {
15675 continue;
15676 }
15678 if (waterStriderCageFrame[num34] > 21)
15679 {
15681 }
15682 }
15684 if (fairyJarFrameCounter[0] > 5)
15685 {
15686 fairyJarFrameCounter[0] = 0;
15687 fairyJarFrame[0]++;
15688 if (fairyJarFrame[0] > 11)
15689 {
15690 fairyJarFrame[0] = 0;
15691 }
15692 }
15693 for (int num36 = 1; num36 < cageFrames; num36++)
15694 {
15695 int num37 = fairyJarFrame[0] + num36 % 12;
15696 if (num36 % 2 == 0)
15697 {
15698 num37++;
15699 }
15700 if (num36 % 5 == 0)
15701 {
15702 num37++;
15703 }
15704 if (num36 % 8 == 0)
15705 {
15706 num37++;
15707 }
15708 while (num37 >= 12)
15709 {
15710 num37 -= 12;
15711 }
15713 }
15714 for (int num38 = 0; num38 < cageFrames; num38++)
15715 {
15716 byte maxValue = 5;
15717 if (fishBowlFrameMode[num38] == 1)
15718 {
15719 if (rand.Next(900) == 0)
15720 {
15721 fishBowlFrameMode[num38] = (byte)rand.Next(maxValue);
15722 }
15724 if (fishBowlFrameCounter[num38] < 5)
15725 {
15726 continue;
15727 }
15729 if (fishBowlFrame[num38] == 10)
15730 {
15731 if (rand.Next(20) == 0)
15732 {
15733 fishBowlFrame[num38] = 11;
15735 }
15736 else
15737 {
15738 fishBowlFrame[num38] = 1;
15739 }
15740 }
15741 else
15742 {
15744 }
15745 }
15746 else if (fishBowlFrameMode[num38] == 2)
15747 {
15748 if (rand.Next(3600) == 0)
15749 {
15750 fishBowlFrameMode[num38] = (byte)rand.Next(maxValue);
15751 }
15753 if (fishBowlFrameCounter[num38] < 20)
15754 {
15755 continue;
15756 }
15758 if (fishBowlFrame[num38] == 10)
15759 {
15760 if (rand.Next(20) == 0)
15761 {
15762 fishBowlFrame[num38] = 11;
15764 }
15765 else
15766 {
15767 fishBowlFrame[num38] = 1;
15768 }
15769 }
15770 else
15771 {
15773 }
15774 }
15775 else if (fishBowlFrameMode[num38] == 3)
15776 {
15777 if (rand.Next(3600) == 0)
15778 {
15779 fishBowlFrameMode[num38] = (byte)rand.Next(maxValue);
15780 }
15782 if (fishBowlFrameCounter[num38] < rand.Next(5, 3600))
15783 {
15784 continue;
15785 }
15787 if (fishBowlFrame[num38] == 10)
15788 {
15789 if (rand.Next(20) == 0)
15790 {
15791 fishBowlFrame[num38] = 11;
15793 }
15794 else
15795 {
15796 fishBowlFrame[num38] = 1;
15797 }
15798 }
15799 else
15800 {
15802 }
15803 }
15804 else if (fishBowlFrame[num38] <= 10)
15805 {
15806 if (rand.Next(3600) == 0)
15807 {
15808 fishBowlFrameMode[num38] = (byte)rand.Next(maxValue);
15809 }
15811 if (fishBowlFrameCounter[num38] < 10)
15812 {
15813 continue;
15814 }
15816 if (fishBowlFrame[num38] == 10)
15817 {
15818 if (rand.Next(12) == 0)
15819 {
15820 fishBowlFrame[num38] = 11;
15821 }
15822 else
15823 {
15824 fishBowlFrame[num38] = 1;
15825 }
15826 }
15827 else
15828 {
15830 }
15831 }
15832 else if (fishBowlFrame[num38] == 12 || fishBowlFrame[num38] == 13)
15833 {
15835 if (fishBowlFrameCounter[num38] < 10)
15836 {
15837 continue;
15838 }
15841 if (fishBowlFrame[num38] > 13)
15842 {
15843 if (rand.Next(20) == 0)
15844 {
15845 fishBowlFrame[num38] = 14;
15846 }
15847 else
15848 {
15849 fishBowlFrame[num38] = 12;
15850 }
15851 }
15852 }
15853 else
15854 {
15855 if (fishBowlFrame[num38] < 11)
15856 {
15857 continue;
15858 }
15860 if (fishBowlFrameCounter[num38] >= 10)
15861 {
15864 if (fishBowlFrame[num38] > 16)
15865 {
15866 fishBowlFrame[num38] = 4;
15867 }
15868 }
15869 }
15870 }
15871 for (int num39 = 0; num39 < cageFrames; num39++)
15872 {
15874 if (lavaFishBowlFrameCounter[num39] > 4 + rand.Next(3))
15875 {
15878 if (lavaFishBowlFrame[num39] > 26)
15879 {
15881 }
15882 }
15883 }
15884 for (int num40 = 0; num40 < 9; num40++)
15885 {
15886 for (int num41 = 0; num41 < cageFrames; num41++)
15887 {
15889 if (rand.Next(3600) == 0)
15890 {
15891 butterflyCageMode[num40, num41] = (byte)rand.Next(5);
15892 if (rand.Next(2) == 0)
15893 {
15895 }
15896 }
15897 int num42 = rand.Next(3, 16);
15899 {
15900 num42 = 3;
15901 }
15903 {
15904 num42 = 5;
15905 }
15907 {
15908 num42 = 10;
15909 }
15911 {
15912 num42 = 15;
15913 }
15914 if (butterflyCageMode[num40, num41] >= 10)
15915 {
15916 if (butterflyCageFrame[num40, num41] <= 7)
15917 {
15919 {
15920 continue;
15921 }
15924 if (butterflyCageFrame[num40, num41] < 0)
15925 {
15927 }
15929 {
15930 continue;
15931 }
15932 if (rand.Next(20) == 0)
15933 {
15935 }
15936 else if (rand.Next(6) == 0)
15937 {
15938 if (butterflyCageMode[num40, num41] >= 10)
15939 {
15941 }
15942 else
15943 {
15945 }
15946 }
15947 }
15948 else
15949 {
15951 {
15952 continue;
15953 }
15956 if (butterflyCageFrame[num40, num41] < 8)
15957 {
15959 }
15961 {
15962 continue;
15963 }
15964 if (rand.Next(20) == 0)
15965 {
15967 }
15968 else if (rand.Next(6) == 0)
15969 {
15970 if (butterflyCageMode[num40, num41] >= 10)
15971 {
15973 }
15974 else
15975 {
15977 }
15978 }
15979 }
15980 }
15981 else if (butterflyCageFrame[num40, num41] <= 7)
15982 {
15984 {
15987 if (butterflyCageFrame[num40, num41] > 7)
15988 {
15990 }
15991 if ((butterflyCageFrame[num40, num41] == 1 || butterflyCageFrame[num40, num41] == 4 || butterflyCageFrame[num40, num41] == 6) && rand.Next(10) == 0)
15992 {
15994 }
15995 }
15996 }
15998 {
16001 if (butterflyCageFrame[num40, num41] > 15)
16002 {
16004 }
16005 if ((butterflyCageFrame[num40, num41] == 9 || butterflyCageFrame[num40, num41] == 12 || butterflyCageFrame[num40, num41] == 14) && rand.Next(10) == 0)
16006 {
16008 }
16009 }
16010 }
16011 }
16013 for (int num43 = 0; num43 < 3; num43++)
16014 {
16015 for (int num44 = 0; num44 < cageFrames; num44++)
16016 {
16018 if (jellyfishCageMode[num43, num44] == 0 && rand.Next(1800) == 0)
16019 {
16021 }
16022 if (jellyfishCageMode[num43, num44] == 2 && rand.Next(60) == 0)
16023 {
16025 }
16026 int num45 = 1;
16027 if (jellyfishCageMode[num43, num44] == 0)
16028 {
16029 num45 = rand.Next(10, 20);
16030 }
16031 if (jellyfishCageMode[num43, num44] == 1)
16032 {
16033 num45 = rand.Next(15, 25);
16034 }
16035 if (jellyfishCageMode[num43, num44] == 2)
16036 {
16037 num45 = rand.Next(4, 9);
16038 }
16039 if (jellyfishCageMode[num43, num44] == 3)
16040 {
16041 num45 = rand.Next(15, 25);
16042 }
16044 {
16047 if (jellyfishCageFrame[num43, num44] >= 4)
16048 {
16050 }
16051 }
16053 {
16056 if (jellyfishCageFrame[num43, num44] >= 7)
16057 {
16059 }
16060 }
16062 {
16065 if (jellyfishCageFrame[num43, num44] >= 9)
16066 {
16068 }
16069 }
16071 {
16074 if (jellyfishCageFrame[num43, num44] >= 10)
16075 {
16078 }
16079 }
16080 }
16081 }
16082 }
static int[] blueBirdCageFrameCounter
Definition Main.cs:1689
static int[,] butterflyCageFrameCounter
Definition Main.cs:1699
static int[] turtleCageFrame
Definition Main.cs:1735
static int[] bunnyCageFrameCounter
Definition Main.cs:1653
static int[] seahorseCageFrame
Definition Main.cs:1773
static byte[,] jellyfishCageMode
Definition Main.cs:1743
static bool critterCage
Definition Main.cs:1649
static int[] seagullCageFrame
Definition Main.cs:1675
static int[] ratCageFrameCounter
Definition Main.cs:1759
static int[] penguinCageFrame
Definition Main.cs:1765
static int[,] slugCageFrame
Definition Main.cs:1777
static void UpdateDragonflyJarFrames()
Definition Main.cs:16092
static int[] duckCageFrame
Definition Main.cs:1667
static int[] frogCageFrameCounter
Definition Main.cs:1729
static int[] birdCageFrameCounter
Definition Main.cs:1681
static int[,] scorpionCageFrame
Definition Main.cs:1705
static int[,] jellyfishCageFrameCounter
Definition Main.cs:1747
static int[] frogCageFrame
Definition Main.cs:1727
static int[] grasshopperCageFrameCounter
Definition Main.cs:1787
static int[] squirrelCageFrameCounterOrange
Definition Main.cs:1661
static int[] ladybugCageFrameCounter
Definition Main.cs:1763
static int[] ladybugCageFrame
Definition Main.cs:1761
static void UpdateOwlCageFrames()
Definition Main.cs:16084
static int[] lavaFishBowlFrameCounter
Definition Main.cs:1725
static int[] macawCageFrameCounter
Definition Main.cs:1693
static int[] waterStriderCageFrameCounter
Definition Main.cs:1771
static int[] squirrelCageFrame
Definition Main.cs:1655
static int[] snailCageFrame
Definition Main.cs:1709
static byte[] fishBowlFrameMode
Definition Main.cs:1717
static int[] squirrelCageFrameOrange
Definition Main.cs:1659
static int[] snailCageFrameCounter
Definition Main.cs:1711
static int[] grebeCageFrameCounter
Definition Main.cs:1673
static int[,] slugCageFrameCounter
Definition Main.cs:1779
static int[] redBirdCageFrame
Definition Main.cs:1683
static int[] fairyJarFrameCounter
Definition Main.cs:1741
static int[] redBirdCageFrameCounter
Definition Main.cs:1685
static int[] fishBowlFrame
Definition Main.cs:1719
static int[] macawCageFrame
Definition Main.cs:1691
static int[] maggotCageFrameCounter
Definition Main.cs:1755
static int[] seahorseCageFrameCounter
Definition Main.cs:1775
static int[] bunnyCageFrame
Definition Main.cs:1651
static int[] turtleCageFrameCounter
Definition Main.cs:1737
static int[] birdCageFrame
Definition Main.cs:1679
static int[] grasshopperCageFrame
Definition Main.cs:1785
static int[] mouseCageFrame
Definition Main.cs:1731
static int[] mouseCageFrameCounter
Definition Main.cs:1733
static int[] ratCageFrame
Definition Main.cs:1757
static int[] squirrelCageFrameCounter
Definition Main.cs:1657
static UnifiedRandom rand
Definition Main.cs:2758
static int[] wormCageFrameCounter
Definition Main.cs:1751
static int[] fishBowlFrameCounter
Definition Main.cs:1721
static int[] blueBirdCageFrame
Definition Main.cs:1687
static int[] maggotCageFrame
Definition Main.cs:1753
static int cageFrames
Definition Main.cs:1647
static int[] waterStriderCageFrame
Definition Main.cs:1769
static int[,] butterflyCageFrame
Definition Main.cs:1697
static int[] snail2CageFrame
Definition Main.cs:1713
static int[] duckCageFrameCounter
Definition Main.cs:1669
static int[] grebeCageFrame
Definition Main.cs:1671
static int[] penguinCageFrameCounter
Definition Main.cs:1767
static int[] mallardCageFrameCounter
Definition Main.cs:1665
static int[] snail2CageFrameCounter
Definition Main.cs:1715
static int[] wormCageFrame
Definition Main.cs:1749
static int[] fairyJarFrame
Definition Main.cs:1739
static int[] mallardCageFrame
Definition Main.cs:1663
static byte[,] butterflyCageMode
Definition Main.cs:1695
static int[,] jellyfishCageFrame
Definition Main.cs:1745
static int[] lavaFishBowlFrame
Definition Main.cs:1723
static int[] seagullCageFrameCounter
Definition Main.cs:1677
static int[,] scorpionCageFrameCounter
Definition Main.cs:1707

References Terraria.Main.birdCageFrame, Terraria.Main.birdCageFrameCounter, Terraria.Main.blueBirdCageFrame, Terraria.Main.blueBirdCageFrameCounter, Terraria.Main.bunnyCageFrame, Terraria.Main.bunnyCageFrameCounter, Terraria.Main.butterflyCageFrame, Terraria.Main.butterflyCageFrameCounter, Terraria.Main.butterflyCageMode, Terraria.Main.cageFrames, Terraria.Main.critterCage, Terraria.Main.duckCageFrame, Terraria.Main.duckCageFrameCounter, Terraria.Main.fairyJarFrame, Terraria.Main.fairyJarFrameCounter, Terraria.Main.fishBowlFrame, Terraria.Main.fishBowlFrameCounter, Terraria.Main.fishBowlFrameMode, Terraria.Main.frogCageFrame, Terraria.Main.frogCageFrameCounter, Terraria.Main.grasshopperCageFrame, Terraria.Main.grasshopperCageFrameCounter, Terraria.Main.grebeCageFrame, Terraria.Main.grebeCageFrameCounter, Terraria.Main.jellyfishCageFrame, Terraria.Main.jellyfishCageFrameCounter, Terraria.Main.jellyfishCageMode, Terraria.Main.ladybugCageFrame, Terraria.Main.ladybugCageFrameCounter, Terraria.Main.lavaFishBowlFrame, Terraria.Main.lavaFishBowlFrameCounter, Terraria.Main.macawCageFrame, Terraria.Main.macawCageFrameCounter, Terraria.Main.maggotCageFrame, Terraria.Main.maggotCageFrameCounter, Terraria.Main.mallardCageFrame, Terraria.Main.mallardCageFrameCounter, Terraria.Main.mouseCageFrame, Terraria.Main.mouseCageFrameCounter, Terraria.Main.penguinCageFrame, Terraria.Main.penguinCageFrameCounter, Terraria.Main.rand, Terraria.Main.ratCageFrame, Terraria.Main.ratCageFrameCounter, Terraria.Main.redBirdCageFrame, Terraria.Main.redBirdCageFrameCounter, Terraria.Main.scorpionCageFrame, Terraria.Main.scorpionCageFrameCounter, Terraria.Main.seagullCageFrame, Terraria.Main.seagullCageFrameCounter, Terraria.Main.seahorseCageFrame, Terraria.Main.seahorseCageFrameCounter, Terraria.Main.slugCageFrame, Terraria.Main.slugCageFrameCounter, Terraria.Main.snail2CageFrame, Terraria.Main.snail2CageFrameCounter, Terraria.Main.snailCageFrame, Terraria.Main.snailCageFrameCounter, Terraria.Main.squirrelCageFrame, Terraria.Main.squirrelCageFrameCounter, Terraria.Main.squirrelCageFrameCounterOrange, Terraria.Main.squirrelCageFrameOrange, Terraria.Main.turtleCageFrame, Terraria.Main.turtleCageFrameCounter, Terraria.Main.UpdateDragonflyJarFrames(), Terraria.Main.UpdateOwlCageFrames(), Terraria.Main.waterStriderCageFrame, Terraria.Main.waterStriderCageFrameCounter, Terraria.Main.wormCageFrame, and Terraria.Main.wormCageFrameCounter.

Referenced by Terraria.Main.AnimateTiles(), and Terraria.Main.Initialize_TileAndNPCData2().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: