Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
BestiaryDatabase.cs
Go to the documentation of this file.
3using Terraria.ID;
4
6
7public class BestiaryDatabase
8{
10
12
14
16
18
20
22
24
26
28 {
30 for (int i = 0; i < entry.Info.Count; i++)
31 {
33 {
35 }
36 }
37 return entry;
38 }
39
45
51
53 {
55 {
56 return value;
57 }
59 return _trashEntry;
60 }
61
63 {
64 for (int i = -65; i < NPCID.Count; i++)
65 {
67 }
68 }
69
71 {
73 if (bestiaryEntry == null)
74 {
75 return;
76 }
80 foreach (IItemDropRule item in rulesForNPCID)
81 {
82 item.ReportDroprates(list, ratesInfo);
83 }
84 foreach (DropRateInfo item2 in list)
85 {
87 }
88 }
89
91 {
92 for (int i = 0; i < _entries.Count; i++)
93 {
94 pass(_entries[i]);
95 }
96 }
97}
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
void Merge(ItemDropDatabase dropsDatabase)
delegate void BestiaryEntriesPass(BestiaryEntry entry)
void ExtractDropsForNPC(ItemDropDatabase dropsDatabase, int npcId)
IBestiarySortStep Register(IBestiarySortStep sortStep)
Dictionary< int, BestiaryEntry > _byNpcId
BestiaryEntry Register(BestiaryEntry entry)
IBestiaryEntryFilter Register(IBestiaryEntryFilter filter)
static readonly short Count
Definition NPCID.cs:11744