Definition at line 43930 of file Projectile.cs.
43931 {
43932
43933
43934
43935
43936
43937
43939 {
43940 return;
43941 }
43945 for (int i = 0; i < 200; i++)
43946 {
43948 if (
nPC.active && !
nPC.townNPC && !
nPC.dontTakeDamage && !
nPC.friendly)
43949 {
43952 {
43954 break;
43955 }
43956 }
43957 }
43959 {
43960 for (
int j = 0;
j < 255;
j++)
43961 {
43964 {
43967 {
43969 break;
43970 }
43971 }
43972 }
43973 }
43975 {
43976 player.CheckMana(player.inventory[player.selectedItem], -1,
pay:
true);
43978 }
43979 }
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
References Terraria.Player.CheckMana(), Terraria.Player.inventory, Terraria.Main.myPlayer, Terraria.Main.npc, Terraria.Main.player, Terraria.Player.selectedItem, Terraria.Player.team, and Terraria.Entity.whoAmI.