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

◆ FindEntryByNPCID()

BestiaryEntry Terraria.GameContent.Bestiary.BestiaryDatabase.FindEntryByNPCID ( int npcNetId)
inline

Definition at line 71 of file BestiaryDatabase.cs.

72 {
73 if (_byNpcId.TryGetValue(npcNetId, out var value))
74 {
75 return value;
76 }
77 _trashEntry.Info.Clear();
78 return _trashEntry;
79 }
Dictionary< int, BestiaryEntry > _byNpcId

References Terraria.GameContent.Bestiary.BestiaryDatabase._byNpcId, Terraria.GameContent.Bestiary.BestiaryDatabase._trashEntry, and Terraria.GameContent.Bestiary.BestiaryEntry.Info.

Referenced by Terraria.GameContent.Bestiary.BestiaryDatabase.ExtractDropsForNPC().

+ Here is the caller graph for this function: