public void markAllNotificationsForItemsThatWeCanUpgradeAsInspected(ItemType itemType) { double coins = this.Player.getResourceAmount(ResourceType.Coin); CharacterInstance activeCharacter = this.Player.ActiveCharacter; List <ItemSlot> list = activeCharacter.getItemSlots(false); for (int i = 0; i < list.Count; i++) { ItemInstance itemInstance = list[i].ItemInstance; if (((itemInstance != null) && (itemInstance.Item.Type == itemType)) && this.Player.canUpgradeItemInstance(itemInstance, coins)) { LangUtil.AddOrUpdateDictionaryEntry <ItemInstance, bool>(this.m_inspectedItemNotifiers, itemInstance, true); } } List <ItemInstance> list2 = activeCharacter.getItemInstances(false); for (int j = 0; j < list2.Count; j++) { ItemInstance ii = list2[j]; if (((ii != null) && (ii.Item.Type == itemType)) && this.Player.canUpgradeItemInstance(ii, coins)) { LangUtil.AddOrUpdateDictionaryEntry <ItemInstance, bool>(this.m_inspectedItemNotifiers, ii, true); } } }
public void markItemNotificationsAsNonInspected(ItemInstance ii) { LangUtil.AddOrUpdateDictionaryEntry <ItemInstance, bool>(this.m_inspectedItemNotifiers, ii, false); }