| 115 | } |
| 116 | |
| 117 | void MerchantPane::dismissed() { |
| 118 | Pane::dismissed(); |
| 119 | |
| 120 | for (auto unsold : m_itemBag->takeAll()) |
| 121 | m_player->giveItem(unsold); |
| 122 | |
| 123 | if (m_sourceEntityId != NullEntityId) |
| 124 | m_worldClient->sendEntityMessage(m_sourceEntityId, "onMerchantClosed"); |
| 125 | } |
| 126 | |
| 127 | PanePtr MerchantPane::createTooltip(Vec2I const& screenPosition) { |
| 128 | if (m_tabSet->selectedTab() == 0) { |
nothing calls this directly
no test coverage detected