version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.17 2001/06/13 12:51:58 michtoen Exp $"; | | * "$Id: skills.c,v 1.18 2001/07/14 04:11:18 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
if(attempt_hide(op)) { | | if(attempt_hide(op)) { |
new_draw_info(NDI_UNIQUE, 0,op,"You hide in the shadows."); | | new_draw_info(NDI_UNIQUE, 0,op,"You hide in the shadows."); |
update_object(op); | | update_object(op,UP_OBJ_FACE); |
return calc_skill_exp(op, NULL); | | return calc_skill_exp(op, NULL); |
} | | } |
new_draw_info(NDI_UNIQUE,0,op,"You fail to conceal yourself."); | | new_draw_info(NDI_UNIQUE,0,op,"You fail to conceal yourself."); |
| | |
/* int load=dist/(pl->speed*spaces); */ | | /* int load=dist/(pl->speed*spaces); */ |
| | |
CLEAR_FLAG(pl,FLAG_FLYING); | | CLEAR_FLAG(pl,FLAG_FLYING); |
insert_ob_in_map(pl,pl->map,pl); | | insert_ob_in_map(pl,pl->map,pl,0); |
if (pl->type==PLAYER) draw(pl); | | if (pl->type==PLAYER) draw(pl); |
| | |
/* pl->speed_left= (int) -FABS((load*8)+1); */ | | /* pl->speed_left= (int) -FABS((load*8)+1); */ |
| | |
/* bounces off 'wall', and drops to feet */ | | /* bounces off 'wall', and drops to feet */ |
remove_ob(throw_ob); | | remove_ob(throw_ob); |
throw_ob->x = op->x; throw_ob->y = op->y; | | throw_ob->x = op->x; throw_ob->y = op->y; |
insert_ob_in_map(throw_ob,op->map,op); | | insert_ob_in_map(throw_ob,op->map,op,0); |
if(op->type==PLAYER) { | | if(op->type==PLAYER) { |
if(eff_str<=1) { | | if(eff_str<=1) { |
new_draw_info_format(NDI_UNIQUE, 0,op, | | new_draw_info_format(NDI_UNIQUE, 0,op, |
| | |
throw_ob->last_sp,throw_ob->speed,throw_ob->stats.food); | | throw_ob->last_sp,throw_ob->speed,throw_ob->stats.food); |
LOG(llevDebug,"inserting tossitem (%d) into map\n",throw_ob->count); | | LOG(llevDebug,"inserting tossitem (%d) into map\n",throw_ob->count); |
#endif | | #endif |
insert_ob_in_map(throw_ob,op->map,op); | | insert_ob_in_map(throw_ob,op->map,op,0); |
move_arrow(throw_ob); | | move_arrow(throw_ob); |
} | | } |
| | |