| 1243 | } |
| 1244 | |
| 1245 | void Player::giveItem(ItemPtr const& item) { |
| 1246 | if (auto spill = pickupItems(item)) |
| 1247 | world()->addEntity(ItemDrop::createRandomizedDrop(spill->descriptor(), position())); |
| 1248 | } |
| 1249 | |
| 1250 | void Player::triggerPickupEvents(ItemPtr const& item) { |
| 1251 | if (item) { |
no test coverage detected