Cooking food.

Posted by Oblisgr on Sun 23 Feb 2020 08:42 PM — 2 posts, 11,947 views.

#0
I made some custom food but it refuces to cook it.
i get message:

How can you cook that?

Need to put any special tag to make it cookable?
Australia Forum Administrator #1

You need to develop some debugging skills. In the case of a message like that I would search for the message “How can you cook that”.

In Linux or Cygwin you can use grep to find such a thing:

$ grep -i 'how can you cook that' *.c
skills.c:      send_to_char( "How can you cook that?\r\n", ch );

So that tells you to look in file skills.c. Searching in that file for the message again I see:

   if( food->item_type != ITEM_COOK )
   {
      send_to_char( "How can you cook that?\r\n", ch );
      return;
   }

So the food item type needs to be ITEM_COOK. Now work out how to set that item type.