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

◆ PrepareBombToBlow()

void Terraria.Projectile.PrepareBombToBlow ( )
inlineprivate

Definition at line 38695 of file Projectile.cs.

38696 {
38697 tileCollide = false;
38698 ai[1] = 0f;
38699 alpha = 255;
38700 if (type == 28 || type == 37 || type == 516 || type == 519)
38701 {
38702 Resize(128, 128);
38703 damage = 100;
38704 knockBack = 8f;
38705 }
38706 else if (type == 773)
38707 {
38708 Resize(48, 96);
38709 damage = 100;
38710 knockBack = 8f;
38711 }
38712 else if (type == 29 || type == 470 || type == 637)
38713 {
38714 Resize(250, 250);
38715 damage = 250;
38716 knockBack = 10f;
38717 }
38718 else if (type == 30 || type == 397 || type == 517 || type == 588)
38719 {
38720 Resize(128, 128);
38721 knockBack = 8f;
38722 }
38723 else if (type == 681)
38724 {
38725 Resize(80, 80);
38726 knockBack = 8f;
38727 }
38728 else if (type == 779 || type == 783 || type == 862 || type == 863)
38729 {
38730 Resize(48, 48);
38731 knockBack = 8f;
38732 }
38733 else if (type == 133 || type == 134 || type == 135 || type == 136 || type == 137 || type == 138 || type == 338 || type == 339 || type == 930)
38734 {
38735 Resize(128, 128);
38736 knockBack = 8f;
38737 }
38738 else if (type == 794 || type == 797 || type == 795 || type == 798 || type == 793 || type == 796 || type == 808 || type == 808)
38739 {
38740 Resize(250, 250);
38741 knockBack = 12f;
38742 }
38743 else if (type == 776 || type == 780 || type == 777 || type == 781 || type == 778 || type == 782 || type == 803 || type == 804)
38744 {
38745 Resize(128, 128);
38746 knockBack = 12f;
38747 }
38748 else if (type == 784 || type == 785 || type == 786 || type == 805 || type == 903 || type == 787 || type == 788 || type == 789 || type == 806 || type == 904 || type == 790 || type == 791 || type == 792 || type == 807 || type == 905 || type == 799 || type == 800 || type == 801 || type == 810 || type == 906 || type == 910 || type == 911)
38749 {
38750 if (type == 903 || type == 904 || type == 905 || type == 906 || type == 910 || type == 911)
38751 {
38752 damage = 100;
38753 }
38754 Resize(48, 48);
38755 knockBack = 12f;
38756 }
38757 else if (type == 139 || type == 140 || type == 141 || type == 142 || type == 143 || type == 144 || type == 340 || type == 341)
38758 {
38759 Resize(200, 200);
38760 knockBack = 10f;
38761 }
38762 }
void Resize(int newWidth, int newHeight)

References System.type.