public static Color GetItemTypeColor(Pickup.JGHOAEDPDBB type) { if ((int)type < 0) { type = Pickup.JGHOAEDPDBB.Health; } if ((int)type > (PickupColor.Length - 1)) { type = Pickup.JGHOAEDPDBB.Health; } return(PickupColor[(int)type]); }
public static List <ItemDataEntry> GetItemList(Pickup.JGHOAEDPDBB desiredType) { List <ItemDataEntry> ItemDataEntryList = new List <ItemDataEntry>(); for (int i = 0; i < LootDatabase.Instance.ItemCount; i++) { var cItem = GetItemDataEntry(i); if (cItem.pickup.weaponType == desiredType) { ItemDataEntryList.Add(cItem); } } return(ItemDataEntryList); }