version 1.161 | | version 1.162 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.161 2006/02/10 23:59:27 akirschbaum Exp $"; | | * "$Id: apply.c,v 1.162 2006/02/11 00:21:10 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
return; | | return; |
} | | } |
| | |
if (!QUERY_FLAG(tmp, FLAG_IDENTIFIED)) | | |
identify(tmp); | | |
| | |
if (!tmp->inv || tmp->inv->type != SPELL) { | | if (!tmp->inv || tmp->inv->type != SPELL) { |
new_draw_info (NDI_UNIQUE, 0, op, | | new_draw_info (NDI_UNIQUE, 0, op, |
"The scroll just doesn't make sense!"); | | "The scroll just doesn't make sense!"); |
| | |
change_exp(op,exp_gain, skop->skill, 0); | | change_exp(op,exp_gain, skop->skill, 0); |
} | | } |
| | |
| | if (!QUERY_FLAG(tmp, FLAG_IDENTIFIED)) |
| | identify(tmp); |
| | |
new_draw_info_format(NDI_BLACK, 0, op, | | new_draw_info_format(NDI_BLACK, 0, op, |
"The scroll of %s turns to dust.", tmp->inv->name); | | "The scroll of %s turns to dust.", tmp->inv->name); |
| | |