MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / secondaryHeldSlot

Method secondaryHeldSlot

source/game/StarPlayerInventory.cpp:772–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772Maybe<InventorySlot> PlayerInventory::secondaryHeldSlot() const {
773 if (m_swapSlot || itemSafeTwoHanded(primaryHeldItem()))
774 return {};
775 if (m_selectedActionBar.is<CustomBarIndex>())
776 return customBarSecondarySlot(m_selectedActionBar.get<CustomBarIndex>());
777 return {};
778}
779
780List<ItemPtr> PlayerInventory::pullOverflow() {
781 return std::move(m_inventoryLoadOverflow);

Callers 1

dropItemMethod · 0.80

Calls 1

itemSafeTwoHandedFunction · 0.85

Tested by

no test coverage detected