version 1.8 | | version 1.9 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.8 2000/08/25 06:23:28 cvs Exp $"; | | * "$Id: skill_util.c,v 1.9 2000/09/27 00:50:47 peterm Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
int skill = op->chosen_skill->stats.sp; | | int skill = op->chosen_skill->stats.sp; |
| | |
switch(skill) { | | switch(skill) { |
| | case SK_LEVITATION: |
| | if(QUERY_FLAG(op,FLAG_FLYING)) { |
| | CLEAR_FLAG(op,FLAG_FLYING); |
| | new_draw_info(NDI_UNIQUE,0,op,"You come to earth."); |
| | } |
| | else { |
| | SET_FLAG(op,FLAG_FLYING); |
| | new_draw_info(NDI_UNIQUE,0,op,"You rise into the air!."); |
| | } |
| | |
| | break; |
case SK_STEALING: | | case SK_STEALING: |
success = steal(op, dir); | | success = steal(op, dir); |
break; | | break; |