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

◆ UpdateStormTigerStatus()

void Terraria.Player.UpdateStormTigerStatus ( )
inlineprivate

Definition at line 10279 of file Player.cs.

10280 {
10281 //IL_00db: Unknown result type (might be due to invalid IL or missing references)
10282 //IL_00e0: Unknown result type (might be due to invalid IL or missing references)
10284 {
10285 1 => 833,
10286 2 => 834,
10287 3 => 835,
10288 _ => -1,
10289 };
10290 bool flag = false;
10291 if (num == -1)
10292 {
10293 flag = true;
10294 }
10295 for (int i = 0; i < ProjectileID.Sets.StormTigerIds.Length; i++)
10296 {
10298 if (num2 != num && ownedProjectileCounts[num2] >= 1)
10299 {
10300 flag = true;
10301 break;
10302 }
10303 }
10304 if (flag)
10305 {
10306 for (int j = 0; j < 1000; j++)
10307 {
10308 Projectile projectile = Main.projectile[j];
10309 if (projectile.active && projectile.owner == whoAmI && projectile.type != num && ProjectileID.Sets.StormTiger[projectile.type])
10310 {
10311 projectile.Kill();
10312 }
10313 }
10314 }
10315 else if (ownedProjectileCounts[num] < 1)
10316 {
10317 int num3 = Projectile.NewProjectile(GetProjectileSource_Misc(13), base.Center, Vector2.Zero, num, 0, 0f, whoAmI, 0f, 1f);
10318 Main.projectile[num3].localAI[0] = 60f;
10319 }
10320 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
int GetDesiredStormTigerMinionRank()
Definition Player.cs:10322
IEntitySource GetProjectileSource_Misc(int projectileSourceId)
Definition Player.cs:7871
int[] ownedProjectileCounts
Provides efficient access to the number of projectiles of the specified type owned by this player cur...
Definition Player.cs:3105

References Terraria.Entity.active, Terraria.Player.GetDesiredStormTigerMinionRank(), Terraria.Player.GetProjectileSource_Misc(), Terraria.Projectile.Kill(), Terraria.Projectile.NewProjectile(), Terraria.Player.ownedProjectileCounts, Terraria.Projectile.owner, Terraria.Main.projectile, Terraria.ID.ProjectileID.Sets.StormTiger, Terraria.ID.ProjectileID.Sets.StormTigerIds, Terraria.Projectile.type, and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.UpdateBuffs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: