| 762 | } |
| 763 | |
| 764 | Maybe<InventorySlot> PlayerInventory::primaryHeldSlot() const { |
| 765 | if (m_swapSlot) |
| 766 | return InventorySlot(SwapSlot()); |
| 767 | if (m_selectedActionBar.is<CustomBarIndex>()) |
| 768 | return customBarPrimarySlot(m_selectedActionBar.get<CustomBarIndex>()); |
| 769 | return {}; |
| 770 | } |
| 771 | |
| 772 | Maybe<InventorySlot> PlayerInventory::secondaryHeldSlot() const { |
| 773 | if (m_swapSlot || itemSafeTwoHanded(primaryHeldItem())) |