version 1.31 | | version 1.32 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.31 2002/11/11 08:59:09 garbled Exp $"; | | * "$Id: skill_util.c,v 1.32 2002/11/14 00:19:32 garbled Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
case SK_WOODSMAN: | | case SK_WOODSMAN: |
/* first, we try to find a cauldron, and do the alchemy thing. | | /* first, we try to find a cauldron, and do the alchemy thing. |
failing that, we go and identify stuff. */ | | failing that, we go and identify stuff. */ |
#ifdef ALCHEMY | | |
for (y=op->y-1; y <= op->y+1; y++) { | | for (y=op->y-1; y <= op->y+1; y++) { |
for (x=op->x-1; x <= op->x+1; x++) { | | for (x=op->x-1; x <= op->x+1; x++) { |
if (out_of_map(op->map, x, y) || wall(op->map, x, y) || | | if (out_of_map(op->map, x, y) || wall(op->map, x, y) || |
| | |
} | | } |
} | | } |
} | | } |
#endif | | |
if (did_alc == 0) | | if (did_alc == 0) |
success = skill_ident(op); | | success = skill_ident(op); |
break; | | break; |