version 1.89 | | version 1.90 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.89 2002/08/02 05:09:39 mwedel Exp $"; | | * "$Id: player.c,v 1.90 2002/08/22 12:37:55 jbontje Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (tmp->type == POTION) | | if (tmp->type == POTION) |
{ pick_up(op, tmp); if(0)fprintf(stderr,"POTION\n"); continue; } | | { pick_up(op, tmp); if(0)fprintf(stderr,"POTION\n"); continue; } |
| | |
| | /* spellbooks, skillscrolls and normal books/scrolls */ |
| | if(op->contr->mode & PU_SPELLBOOK) |
| | if (tmp->type == SPELLBOOK) |
| | { pick_up(op, tmp); if(0)fprintf(stderr,"SPELLBOOK\n"); continue; } |
| | if(op->contr->mode & PU_SKILLSCROLL) |
| | if (tmp->type == SKILLSCROLL) |
| | { pick_up(op, tmp); if(0)fprintf(stderr,"SKILLSCROLL\n"); continue; } |
| | if(op->contr->mode & PU_READABLES) |
| | if (tmp->type == BOOK || tmp->type == SCROLL) |
| | { pick_up(op, tmp); if(0)fprintf(stderr,"READABLES\n"); continue; } |
| | |
| | |
/* pick up all magical items */ | | /* pick up all magical items */ |
if(op->contr->mode & PU_MAGICAL) | | if(op->contr->mode & PU_MAGICAL) |
if (QUERY_FLAG (tmp, FLAG_KNOWN_MAGICAL) && ! QUERY_FLAG(tmp, FLAG_KNOWN_CURSED)) | | if (QUERY_FLAG (tmp, FLAG_KNOWN_MAGICAL) && ! QUERY_FLAG(tmp, FLAG_KNOWN_CURSED)) |