private static void Init() { List <ItemIndex> list = new List <ItemIndex>(); List <EquipmentIndex> list2 = new List <EquipmentIndex>(); ItemIndex itemIndex = ItemIndex.Syringe; ItemIndex itemCount = (ItemIndex)ItemCatalog.itemCount; while (itemIndex < itemCount) { ItemDef itemDef = ItemCatalog.GetItemDef(itemIndex); if (itemDef.tier == ItemTier.Lunar || itemDef.ContainsTag(ItemTag.Cleansable)) { list.Add(itemIndex); } itemIndex++; } EquipmentIndex equipmentIndex = EquipmentIndex.CommandMissile; EquipmentIndex equipmentCount = (EquipmentIndex)EquipmentCatalog.equipmentCount; while (equipmentIndex < equipmentCount) { if (EquipmentCatalog.GetEquipmentDef(equipmentIndex).isLunar) { list2.Add(equipmentIndex); } equipmentIndex++; } ShrineCleanseBehavior.cleansableItems = list.ToArray(); ShrineCleanseBehavior.cleansableEquipments = list2.ToArray(); }
// Token: 0x060005FA RID: 1530 RVA: 0x00018A68 File Offset: 0x00016C68 private static bool IsPickupAllowedForMonsters(PickupIndex pickupIndex) { PickupDef pickupDef = PickupCatalog.GetPickupDef(pickupIndex); if (pickupDef == null) { return(false); } ItemDef itemDef = ItemCatalog.GetItemDef(pickupDef.itemIndex); if (itemDef == null) { return(false); } for (int i = 0; i < ArenaMissionController.forbiddenTags.Length; i++) { if (itemDef.ContainsTag(ArenaMissionController.forbiddenTags[i])) { return(false); } } return(true); }