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

◆ ItemCheck_TryDestroyingDrones()

void Terraria.Player.ItemCheck_TryDestroyingDrones ( Item sItem)
inlineprivate

Definition at line 43082 of file Player.cs.

43083 {
43084 if (sItem.type != 5451 || ownedProjectileCounts[1020] <= 0 || !controlUseItem || !ItemTimeIsZero || mouseInterface)
43085 {
43086 return;
43087 }
43088 for (int i = 0; i < 1000; i++)
43089 {
43090 Projectile projectile = Main.projectile[i];
43091 if (projectile.owner == whoAmI && projectile.type == 1020)
43092 {
43093 projectile.Kill();
43094 }
43095 }
43096 releaseUseItem = false;
43097 }
bool ItemTimeIsZero
Definition Player.cs:3525
bool mouseInterface
Definition Player.cs:1137
bool releaseUseItem
Definition Player.cs:1413
int[] ownedProjectileCounts
Definition Player.cs:2545
bool controlUseItem
Definition Player.cs:1391

References Terraria.Projectile.Kill(), Terraria.Projectile.owner, Terraria.Main.projectile, and Terraria.Projectile.type.