version 1.78 | | version 1.79 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.78 2006/04/06 21:18:34 tchize Exp $"; | | * "$Id: living.c,v 1.79 2006/08/26 17:56:19 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
void fix_player(object *op) { | | void fix_player(object *op) { |
int i,j; | | int i,j; |
event *evt; | | |
float f,max=9,added_speed=0,bonus_speed=0, sp_tmp,speed_reduce_from_disease=1; | | float f,max=9,added_speed=0,bonus_speed=0, sp_tmp,speed_reduce_from_disease=1; |
int weapon_weight=0,weapon_speed=0; | | int weapon_weight=0,weapon_speed=0; |
int best_wc=0, best_ac=0, wc=0, ac=0; | | int best_wc=0, best_ac=0, wc=0, ac=0; |
| | |
* extra strength damage, this is where the code should | | * extra strength damage, this is where the code should |
* go. | | * go. |
*/ | | */ |
evt = find_event(tmp,EVENT_ATTACK); | | |
if (evt != NULL) { | | |
if (op->current_weapon_script) | | |
free_string(op->current_weapon_script); | | |
op->current_weapon_script=add_string(query_name(tmp)); | | |
} | | |
op->current_weapon = tmp; | | op->current_weapon = tmp; |
if(settings.spell_encumbrance == TRUE && op->type==PLAYER) | | if(settings.spell_encumbrance == TRUE && op->type==PLAYER) |
op->contr->encumbrance+=(int)3*tmp->weight/1000; | | op->contr->encumbrance+=(int)3*tmp->weight/1000; |