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

◆ GetKillCountNeeded()

static int Terraria.GameContent.Bestiary.CommonEnemyUICollectionInfoProvider.GetKillCountNeeded ( string persistentId)
inlinestatic

Definition at line 21 of file CommonEnemyUICollectionInfoProvider.cs.

22 {
25 {
27 }
28 if (!ContentSamples.NpcsByNetId.TryGetValue(value, out var value2))
29 {
31 }
32 int num = Item.BannerToItem(Item.NPCtoBanner(value2.BannerID()));
34 }
static Dictionary< string, int > NpcNetIdsByPersistentIds
The NPC type (F:Terraria.NPC.type) for a given persistent ID. Vanilla persistent IDs are the names ...
static Dictionary< int, NPC > NpcsByNetId
The default T:Terraria.NPC for a given NPC type (F:Terraria.NPC.type). Note that these entries do n...
This class stores instances of various content types in a number of dictionaries. These instances ser...
static int DefaultKillsForBannerNeeded
The default number of NPC kills required to obtain the NPC's respective banner.
Definition ItemID.cs:1256
static int[] KillsToBanner
Determines the number of NPC kills required to obtain the given item type (F:Terraria....
Definition ItemID.cs:1262

References Terraria.Item.BannerToItem(), Terraria.ID.ItemID.Sets.DefaultKillsForBannerNeeded, Terraria.ID.ItemID.Sets.KillsToBanner, Terraria.ID.ContentSamples.NpcNetIdsByPersistentIds, Terraria.ID.ContentSamples.NpcsByNetId, and Terraria.Item.NPCtoBanner().

Referenced by Terraria.GameContent.Bestiary.CommonEnemyUICollectionInfoProvider.CommonEnemyUICollectionInfoProvider(), and Terraria.GameContent.Bestiary.SalamanderShellyDadUICollectionInfoProvider.SalamanderShellyDadUICollectionInfoProvider().

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