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

◆ BannerID()

int Terraria.NPC.BannerID ( )
inline

Definition at line 2612 of file NPC.cs.

2613 {
2614 if (netID >= -10)
2615 {
2616 return netID;
2617 }
2618 return type;
2619 }
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990
int netID
Similar to F:Terraria.NPC.type, but accounts for negative T:Terraria.ID.NPCID values.
Definition NPC.cs:1168

References Terraria.NPC.netID, and Terraria.NPC.type.

Referenced by Terraria.Player.ApplyBannerDefenseBuff(), Terraria.Player.ApplyBannerOffenseBuff(), and Terraria.Player.StrikeNPCDirect().

+ Here is the caller graph for this function: