version 1.94 | | version 1.95 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.94 2003/11/25 18:49:32 ryo_saeba Exp $"; | | * "$Id: apply.c,v 1.95 2004/01/18 10:36:10 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
case SKILL: | | case SKILL: |
case BOW: | | case BOW: |
case LAMP: | | case LAMP: |
| | case BUILDER: |
if (tmp->env != op) | | if (tmp->env != op) |
return 2; /* not in inventory */ | | return 2; /* not in inventory */ |
(void) apply_special (op, tmp, aflag); | | (void) apply_special (op, tmp, aflag); |
| | |
} | | } |
break; | | break; |
| | |
| | case BUILDER: |
| | new_draw_info_format(NDI_UNIQUE, 0, who, "You unready %s.",query_name(op)); |
| | who->contr->shoottype = range_none; |
| | who->contr->ranges[ range_builder ] = NULL; |
| | break; |
| | |
default: | | default: |
new_draw_info_format(NDI_UNIQUE, 0, who, "You unapply %s.",query_name(op)); | | new_draw_info_format(NDI_UNIQUE, 0, who, "You unapply %s.",query_name(op)); |
break; | | break; |
| | |
} | | } |
break; | | break; |
| | |
| | case BUILDER: |
| | if ( who->contr->ranges[ range_builder ] ) |
| | unapply_special( who, who->contr->ranges[ range_builder ], 0 ); |
| | who->contr->shoottype = range_builder; |
| | who->contr->ranges[ range_builder ] = op; |
| | new_draw_info_format( NDI_UNIQUE, 0, who, "You ready your %s.", query_name( op ) ); |
| | break; |
| | |
default: | | default: |
new_draw_info_format(NDI_UNIQUE, 0, who, "You apply %s.",query_name(op)); | | new_draw_info_format(NDI_UNIQUE, 0, who, "You apply %s.",query_name(op)); |
} /* end of switch op->type */ | | } /* end of switch op->type */ |