version 1.27 | | version 1.28 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.27 2002/06/09 07:59:31 mwedel Exp $"; | | * "$Id: skills.c,v 1.28 2002/07/15 04:57:13 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
identify(tmp); | | identify(tmp); |
if (pl->type==PLAYER) { | | if (pl->type==PLAYER) { |
new_draw_info_format(NDI_UNIQUE, 0, pl, | | new_draw_info_format(NDI_UNIQUE, 0, pl, |
"You identify %s.", long_desc(tmp)); | | "You identify %s.", long_desc(tmp, pl)); |
if (tmp->msg) { | | if (tmp->msg) { |
new_draw_info(NDI_UNIQUE, 0,pl, "The item has a story:"); | | new_draw_info(NDI_UNIQUE, 0,pl, "The item has a story:"); |
new_draw_info(NDI_UNIQUE, 0,pl, tmp->msg); | | new_draw_info(NDI_UNIQUE, 0,pl, tmp->msg); |
| | |
if(throw_ob==NULL) { | | if(throw_ob==NULL) { |
if(op->type==PLAYER) { | | if(op->type==PLAYER) { |
new_draw_info(NDI_UNIQUE, 0,op,"You have nothing to throw."); | | new_draw_info(NDI_UNIQUE, 0,op,"You have nothing to throw."); |
op->contr->count_left=0; /* ?? is this needed?? */ | | |
} | | } |
return; | | return; |
} | | } |
if (QUERY_FLAG(throw_ob, FLAG_STARTEQUIP)) { | | if (QUERY_FLAG(throw_ob, FLAG_STARTEQUIP)) { |
if (op->type==PLAYER) { | | if (op->type==PLAYER) { |
new_draw_info(NDI_UNIQUE, 0, op, "The gods won't let you throw that."); | | new_draw_info(NDI_UNIQUE, 0, op, "The gods won't let you throw that."); |
op->contr->count_left=0; /* ?? is this needed?? */ | | |
} | | } |
return; | | return; |
} | | } |
| | |
} | | } |
else | | else |
new_draw_info(NDI_UNIQUE, 0,op,"Something is in the way."); | | new_draw_info(NDI_UNIQUE, 0,op,"Something is in the way."); |
op->contr->count_left=0; /* needed?? */ | | |
} | | } |
return; | | return; |
} /* if object can't be thrown */ | | } /* if object can't be thrown */ |