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

◆ PrepareBombToBlow()

void Terraria.Projectile.PrepareBombToBlow ( )
inlineprivate

Definition at line 49714 of file Projectile.cs.

49715 {
49716 tileCollide = false;
49717 ai[1] = 0f;
49718 alpha = 255;
49719 if (type == 28 || type == 37 || type == 516 || type == 519)
49720 {
49721 Resize(128, 128);
49722 damage = 100;
49723 knockBack = 8f;
49724 }
49725 else if (type == 773)
49726 {
49727 Resize(48, 96);
49728 damage = 100;
49729 knockBack = 8f;
49730 }
49731 else if (type == 29 || type == 470 || type == 637)
49732 {
49733 Resize(250, 250);
49734 damage = 250;
49735 knockBack = 10f;
49736 }
49737 else if (type == 30 || type == 397 || type == 517 || type == 588)
49738 {
49739 Resize(128, 128);
49740 knockBack = 8f;
49741 }
49742 else if (type == 681)
49743 {
49744 Resize(80, 80);
49745 knockBack = 8f;
49746 }
49747 else if (type == 779 || type == 783 || type == 862 || type == 863)
49748 {
49749 Resize(48, 48);
49750 knockBack = 8f;
49751 }
49752 else if (type == 133 || type == 134 || type == 135 || type == 136 || type == 137 || type == 138 || type == 338 || type == 339 || type == 930)
49753 {
49754 Resize(128, 128);
49755 knockBack = 8f;
49756 }
49757 else if (type == 794 || type == 797 || type == 795 || type == 798 || type == 793 || type == 796 || type == 808 || type == 808)
49758 {
49759 Resize(250, 250);
49760 knockBack = 12f;
49761 }
49762 else if (type == 776 || type == 780 || type == 777 || type == 781 || type == 778 || type == 782 || type == 803 || type == 804)
49763 {
49764 Resize(128, 128);
49765 knockBack = 12f;
49766 }
49767 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)
49768 {
49769 if (type == 903 || type == 904 || type == 905 || type == 906 || type == 910 || type == 911)
49770 {
49771 damage = 100;
49772 }
49773 Resize(48, 48);
49774 knockBack = 12f;
49775 }
49776 else if (type == 139 || type == 140 || type == 141 || type == 142 || type == 143 || type == 144 || type == 340 || type == 341)
49777 {
49778 Resize(200, 200);
49779 knockBack = 10f;
49780 }
49781 }
int damage
This will always be set in Projectile.NewProjectile based on the weapons damage and player stat modif...
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
int alpha
How transparent to draw this projectile. 0 to 255. 255 is completely transparent. ExampleBulletsets...
float knockBack
This will always be set in Projectile.NewProjectile based on the weapons knockback and player stat mo...
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
bool tileCollide
If true, the projectile will collide with tiles, usually bouncing or killing the tile depending on M:...
void Resize(int newWidth, int newHeight)
Changes the F:Terraria.Entity.width and F:Terraria.Entity.height of the projectile while preserving t...