version 1.43 | | version 1.44 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.43 2004/01/25 06:51:22 mwedel Exp $"; | | * "$Id: treasure.c,v 1.44 2004/02/09 05:36:12 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* books w/ info are worth more! */ | | /* books w/ info are worth more! */ |
op->value*=((op->level>10?op->level:(op->level+1)/2)*((strlen(op->msg)/250)+1)); | | op->value*=((op->level>10?op->level:(op->level+1)/2)*((strlen(op->msg)/250)+1)); |
/* creator related stuff */ | | /* creator related stuff */ |
if(QUERY_FLAG(creator,FLAG_NO_PICK)) /* for library, chained books! */ | | |
| | /* for library, chained books. Note that some monsters have no_pick |
| | * set - we don't want to set no pick in that case. |
| | */ |
| | if(QUERY_FLAG(creator,FLAG_NO_PICK) && |
| | !QUERY_FLAG(creator, FLAG_MONSTER)) |
SET_FLAG(op,FLAG_NO_PICK); | | SET_FLAG(op,FLAG_NO_PICK); |
if(creator->slaying&&!op->slaying) /* for check_inv floors */ | | if(creator->slaying&&!op->slaying) /* for check_inv floors */ |
op->slaying = add_string(creator->slaying); | | op->slaying = add_string(creator->slaying); |