engine/actions/source/PickupAction.cpp
// Handle the case where the creature already has the maximum number of items
// it can hold.
Handle the case where the creature already has the maximum number of items
it can hold.
Handle the case where the creature already has the maximum number of items it can hold .
void PickupAction::handle_cannot_pickup(CreaturePtr creature, const string& pickup_details_sid)
{
  IMessageManager& manager = MM::instance(MessageTransmit::SELF, creature, creature && creature->get_is_player());
  if (creature && creature->get_is_player() && !pickup_details_sid.empty())
  {
    string pick_up_not_allowed = StringTable::get(pickup_details_sid);
    manager.add_new_message(pick_up_not_allowed);
    manager.send();
  }
}
void PickupAction :: handle_cannot_pickup ( CreaturePtr creature , const string & pickup_details_sid ) { IMessageManager & manager = MM :: instance ( MessageTransmit :: SELF , creature , creature && creature -> get_is_player ( ) ) ; if ( creature && creature -> get_is_player ( ) && ! pickup_details_sid . empty ( ) ) { string pick_up_not_allowed = StringTable :: get ( pickup_details_sid ) ; manager . add_new_message ( pick_up_not_allowed ) ; manager . send ( ) ; } }
Handle the case where the creature already has the maximum number of items
it can hold.
Handle the case where the creature already has the maximum number of items it can hold .