Re: Item_X question

From: Tony Robbins (tonyr@NWPACLINK.COM)
Date: 05/08/98


At 01:49 PM 5/9/98 +1000, you wrote:
>Hello. i noticed this today.
>
>/* Item types: used by obj_data.obj_flags.type_flag  */
>#define ITEM_LIGHT              1       /* Item is a light source
>*/
>#define ITEM_SCROLL             2       /* Item is a scroll
>*/
>#define ITEM_WAND               3       /* Item is a wand
>*/
>.. <etc>
>
>now in constants.c
>
>* ITEM_x (ordinal object types) */
>const char *item_types[] = {
>  "UNDEFINED",          /* 0 */
>  "LIGHT",
>  "SCROLL",
>  "WAND",
UNDEFINED is if for some reason you have a zero.  It's the object type if
they don't put anything besides 0 in the obj file.  Now, you could use that
for an obj type, but, well, then all those undefined objs (like olc) would
become the new type


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST