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

◆ FindBannerToAssociateTo()

static void Terraria.Projectile.FindBannerToAssociateTo ( IEntitySource spawnSource,
Projectile next )
inlinestaticprivate

Definition at line 10407 of file Projectile.cs.

10408 {
10410 {
10411 if (entitySource_Parent.Entity is Projectile projectile)
10412 {
10413 next.bannerIdToRespondTo = projectile.bannerIdToRespondTo;
10414 }
10415 else if (entitySource_Parent.Entity is NPC nPC)
10416 {
10417 next.bannerIdToRespondTo = Item.NPCtoBanner(nPC.BannerID());
10418 }
10419 }
10420 }
Use when the parent can be considered the 'owner' or 'responsible for' the effect....

References Terraria.Item.NPCtoBanner().

Referenced by Terraria.Projectile.NewProjectile().

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