version 1.66 | | version 1.67 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.66 2005/10/18 16:54:31 gros Exp $"; | | * "$Id: skills.c,v 1.67 2005/11/06 12:14:05 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
int eff_str = 0,maxc,str=op->stats.Str,dam=0; | | int eff_str = 0,maxc,str=op->stats.Str,dam=0; |
int pause_f,weight_f=0; | | int pause_f,weight_f=0; |
float str_factor=1.0,load_factor=1.0,item_factor=1.0; | | float str_factor=1.0,load_factor=1.0,item_factor=1.0; |
| | tag_t tag; |
| | |
if(throw_ob==NULL) { | | if(throw_ob==NULL) { |
if(op->type==PLAYER) { | | if(op->type==PLAYER) { |
| | |
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 |
| | tag = throw_ob->count; |
insert_ob_in_map(throw_ob,part->map,op,0); | | insert_ob_in_map(throw_ob,part->map,op,0); |
| | if (!was_destroyed (throw_ob, tag)) |
move_arrow(throw_ob); | | move_arrow(throw_ob); |
return 1; | | return 1; |
} | | } |