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

◆ ItemCheck_TurretAltFeatureUse()

void Terraria.Player.ItemCheck_TurretAltFeatureUse ( Item sItem,
bool cShoot )
inlineprivate

Definition at line 46920 of file Player.cs.

46921 {
46922 if (sItem.shoot <= 0 || !ProjectileID.Sets.TurretFeature[sItem.shoot] || altFunctionUse != 2 || !cShoot || !ItemTimeIsZero)
46923 {
46924 return;
46925 }
46927 for (int i = 0; i < 1000; i++)
46928 {
46929 Projectile projectile = Main.projectile[i];
46930 if (projectile.active && projectile.owner == Main.myPlayer && ProjectileID.Sets.TurretFeature[projectile.type])
46931 {
46932 projectile.Kill();
46933 }
46934 }
46935 }
void ApplyItemTime(Item sItem)
Definition Player.cs:3752
bool ItemTimeIsZero
Definition Player.cs:3525

References Terraria.Entity.active, Terraria.Projectile.Kill(), Terraria.Main.myPlayer, Terraria.Projectile.owner, Terraria.Main.projectile, Terraria.ID.ProjectileID.Sets.TurretFeature, and Terraria.Projectile.type.