version 1.63 | | version 1.64 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.63 2006/01/07 18:56:51 akirschbaum Exp $"; | | * "$Id: treasure.c,v 1.64 2006/02/09 00:48:36 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* recursived checks the linked list. Treasurelist is passed only | | /* recursived checks the linked list. Treasurelist is passed only |
* so that the treasure name can be printed out | | * so that the treasure name can be printed out |
*/ | | */ |
static void check_treasurelist(treasure *t, treasurelist *tl) | | static void check_treasurelist(const treasure *t, const treasurelist *tl) |
{ | | { |
if (t->item==NULL && t->name==NULL) | | if (t->item==NULL && t->name==NULL) |
LOG(llevError,"Treasurelist %s has element with no name or archetype\n", tl->name); | | LOG(llevError,"Treasurelist %s has element with no name or archetype\n", tl->name); |
| | |
* This code presumes that op has had its spell object created (in op->inv) | | * This code presumes that op has had its spell object created (in op->inv) |
*/ | | */ |
| | |
int level_for_item(object *op, int difficulty, int retmult) | | int level_for_item(const object *op, int difficulty, int retmult) |
{ | | { |
int level, mult, olevel; | | int level, mult, olevel; |
| | |