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

◆ FindBannerToAssociateTo()

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

Definition at line 9936 of file Projectile.cs.

9937 {
9939 {
9940 if (entitySource_Parent.Entity is Projectile projectile)
9941 {
9942 next.bannerIdToRespondTo = projectile.bannerIdToRespondTo;
9943 }
9944 else if (entitySource_Parent.Entity is NPC nPC)
9945 {
9946 next.bannerIdToRespondTo = Item.NPCtoBanner(nPC.BannerID());
9947 }
9948 }
9949 }

References Terraria.Item.NPCtoBanner().

Referenced by Terraria.Projectile.NewProjectile().