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

◆ UpdateStormTigerStatus()

void Terraria.Player.UpdateStormTigerStatus ( )
inlineprivate

Definition at line 11721 of file Player.cs.

11722 {
11724 {
11725 1 => 833,
11726 2 => 834,
11727 3 => 835,
11728 _ => -1,
11729 };
11730 bool flag = false;
11731 if (num == -1)
11732 {
11733 flag = true;
11734 }
11735 for (int i = 0; i < ProjectileID.Sets.StormTigerIds.Length; i++)
11736 {
11738 if (num2 != num && ownedProjectileCounts[num2] >= 1)
11739 {
11740 flag = true;
11741 break;
11742 }
11743 }
11744 if (flag)
11745 {
11746 for (int j = 0; j < 1000; j++)
11747 {
11748 Projectile projectile = Main.projectile[j];
11749 if (projectile.active && projectile.owner == whoAmI && projectile.type != num && ProjectileID.Sets.StormTiger[projectile.type])
11750 {
11751 projectile.Kill();
11752 }
11753 }
11754 }
11755 else if (ownedProjectileCounts[num] < 1)
11756 {
11757 int num3 = Projectile.NewProjectile(GetProjectileSource_Misc(13), base.Center, Vector2.Zero, num, 0, 0f, whoAmI, 0f, 1f);
11758 Main.projectile[num3].localAI[0] = 60f;
11759 }
11760 }
int GetDesiredStormTigerMinionRank()
Definition Player.cs:11762
IEntitySource GetProjectileSource_Misc(int projectileSourceId)
Definition Player.cs:9317
int[] ownedProjectileCounts
Definition Player.cs:2545

References Terraria.Entity.active, Terraria.Projectile.Kill(), Terraria.Projectile.NewProjectile(), Terraria.Projectile.owner, Terraria.Main.projectile, Terraria.ID.ProjectileID.Sets.StormTiger, Terraria.ID.ProjectileID.Sets.StormTigerIds, Terraria.Projectile.type, and Microsoft.Xna.Framework.Vector2.Zero.