| 642 | } |
| 643 | |
| 644 | bool PlayerInventory::consumeCurrency(String const& currencyType, uint64_t amount) { |
| 645 | if (m_currencies[currencyType] >= amount) { |
| 646 | m_currencies[currencyType] -= amount; |
| 647 | return true; |
| 648 | } else { |
| 649 | return false; |
| 650 | } |
| 651 | } |
| 652 | |
| 653 | Maybe<InventorySlot> PlayerInventory::customBarPrimarySlot(CustomBarIndex customBarIndex) const { |
| 654 | return m_customBar.at(m_customBarGroup, customBarIndex).first; |
no outgoing calls
no test coverage detected