| 57 | }; |
| 58 | |
| 59 | uint64_t ItemDatabase::getCountOfItem(List<ItemPtr> const& bag, ItemDescriptor const& item, bool exactMatch) { |
| 60 | auto normalizedBag = normalizeBag(bag); |
| 61 | return getCountOfItem(normalizedBag, item, exactMatch); |
| 62 | } |
| 63 | |
| 64 | uint64_t ItemDatabase::getCountOfItem(HashMap<ItemDescriptor, uint64_t> const& bag, ItemDescriptor const& item, bool exactMatch) { |
| 65 | ItemDescriptor matchItem = exactMatch ? item.singular() : ItemDescriptor(item.name(), 1); |
no test coverage detected