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

◆ ShouldShowItem()

static bool Terraria.GameContent.Bestiary.ItemDropBestiaryInfoElement.ShouldShowItem ( ref DropRateInfo dropRateInfo)
inlinestaticprivate

Definition at line 31 of file ItemDropBestiaryInfoElement.cs.

32 {
33 bool result = true;
34 if (dropRateInfo.conditions != null && dropRateInfo.conditions.Count > 0)
35 {
36 for (int i = 0; i < dropRateInfo.conditions.Count; i++)
37 {
38 if (!dropRateInfo.conditions[i].CanShowItemDropInUI())
39 {
40 result = false;
41 break;
42 }
43 }
44 }
45 return result;
46 }

Referenced by Terraria.GameContent.Bestiary.ItemDropBestiaryInfoElement.GetSearchString(), and Terraria.GameContent.Bestiary.ItemDropBestiaryInfoElement.ProvideUIElement().