engine/actions/source/PickupAction.cpp
// Handle the case where we're trying to pick up from a tile that contains no items.
Handle the case where we're trying to pick up from a tile that contains no items.
Handle the case where we ' re trying to pick up from a tile that contains no items .
void PickupAction::handle_empty_tile_pickup(CreaturePtr creature)
{
  IMessageManager& manager = MM::instance(MessageTransmit::SELF, creature, creature && creature->get_is_player());
  if (creature && creature->get_is_player())
  {
    string no_item_on_ground = StringTable::get(ActionTextKeys::ACTION_PICK_UP_NOTHING_ON_GROUND);
    manager.add_new_message(no_item_on_ground);
    manager.send();
  }  
}
void PickupAction :: handle_empty_tile_pickup ( CreaturePtr creature ) { IMessageManager & manager = MM :: instance ( MessageTransmit :: SELF , creature , creature && creature -> get_is_player ( ) ) ; if ( creature && creature -> get_is_player ( ) ) { string no_item_on_ground = StringTable :: get ( ActionTextKeys :: ACTION_PICK_UP_NOTHING_ON_GROUND ) ; manager . add_new_message ( no_item_on_ground ) ; manager . send ( ) ; } }
Handle the case where we're trying to pick up from a tile that contains no items.
Handle the case where we ' re trying to pick up from a tile that contains no items .