version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_readable_c = | | * static char *rcsid_readable_c = |
* "$Id: readable.c,v 1.9 2001/10/30 02:30:19 michtoen Exp $"; | | * "$Id: readable.c,v 1.10 2002/07/15 04:57:12 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 2001 Mark Wedel | | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
along with this program; if not, write to the Free Software | | along with this program; if not, write to the Free Software |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | |
The author can be reached via e-mail to mwedel@scruz.net | | The authors can be reached via e-mail at crossfire-devel@real-time.com |
*/ | | */ |
| | |
| | |
| | |
static char retbuf[HUGE_BUF]; | | static char retbuf[HUGE_BUF]; |
| | |
sprintf (retbuf, " *** %s ***\n", mon->name); | | sprintf (retbuf, " *** %s ***\n", mon->name); |
strcat (retbuf, describe_item (mon)); | | strcat (retbuf, describe_item(mon, NULL)); |
| | |
return retbuf; | | return retbuf; |
} | | } |
| | |
add_abilities (tmp, art->item); | | add_abilities (tmp, art->item); |
tmp->type = type; | | tmp->type = type; |
SET_FLAG (tmp, FLAG_IDENTIFIED); | | SET_FLAG (tmp, FLAG_IDENTIFIED); |
if ((ch = describe_item (tmp)) != NULL && strlen (ch) > 1) | | if ((ch = describe_item (tmp, NULL)) != NULL && strlen (ch) > 1) |
sprintf (buf, "%s Properties of this artifact include: \n %s \n", | | sprintf (buf, "%s Properties of this artifact include: \n %s \n", |
buf, ch); | | buf, ch); |
free_object(tmp); | | free_object(tmp); |