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

◆ UpdateAbigailStatus()

void Terraria.Player.UpdateAbigailStatus ( )
inlineprivate

Definition at line 10257 of file Player.cs.

10258 {
10259 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
10260 //IL_006c: Unknown result type (might be due to invalid IL or missing references)
10261 int num = 963;
10262 if (ownedProjectileCounts[970] < 1)
10263 {
10264 for (int i = 0; i < 1000; i++)
10265 {
10266 Projectile projectile = Main.projectile[i];
10267 if (projectile.active && projectile.owner == whoAmI && projectile.type == num)
10268 {
10269 projectile.Kill();
10270 }
10271 }
10272 }
10273 else if (ownedProjectileCounts[num] < 1)
10274 {
10275 Projectile.NewProjectile(GetProjectileSource_Misc(14), base.Center, Vector2.Zero, num, 0, 0f, whoAmI);
10276 }
10277 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
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.GetProjectileSource_Misc(), Terraria.Projectile.Kill(), Terraria.Projectile.NewProjectile(), Terraria.Player.ownedProjectileCounts, Terraria.Projectile.owner, Terraria.Main.projectile, 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: