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

Method addItems

source/frontend/StarMerchantInterface.cpp:168–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168ItemPtr MerchantPane::addItems(ItemPtr const& items) {
169 if (m_tabSet->selectedTab() == 1) {
170 auto remainder = m_itemBag->addItems(items);
171 updateSellTotal();
172 return remainder;
173 } else {
174 return items;
175 }
176}
177
178void MerchantPane::swapSlot() {
179 ItemPtr source = m_player->inventory()->swapSlotItem();

Callers 9

addToContainerMethod · 0.45
nakedMethod · 0.45
InventoryPaneMethod · 0.45
swapSlotMethod · 0.45
giveContainerResultMethod · 0.45
setShirtMethod · 0.45
setPantsMethod · 0.45
tickMethod · 0.45
commonSetupMethod · 0.45

Calls 1

selectedTabMethod · 0.80

Tested by

no test coverage detected