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

◆ GetLowestBiomeGroupIndex()

static int Terraria.ID.ContentSamples.BestiaryHelper.GetLowestBiomeGroupIndex ( NPC npc,
BestiaryDatabase database,
List< IBestiaryInfoElement > commonElements )
inlinestatic

Definition at line 819 of file ContentSamples.cs.

820 {
821 List<IBestiaryInfoElement> info = database.FindEntryByNPCID(npc.netID).Info;
822 for (int num = commonElements.Count - 1; num >= 0; num--)
823 {
824 if (info.IndexOf(commonElements[num]) != -1)
825 {
826 return num;
827 }
828 }
829 return int.MaxValue;
830 }

References Terraria.NPC.netID.

Referenced by Terraria.ID.ContentSamples.BestiaryHelper.GetSortedBestiaryEntriesList().

+ Here is the caller graph for this function: