version 1.49 | | version 1.50 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.49 2003/03/09 00:44:11 mwedel Exp $"; | | * "$Id: living.c,v 1.50 2003/06/26 11:27:42 gros 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. |
*/ | | */ |
if (tmp->event_hook[EVENT_ATTACK] != NULL) { | | evt = find_event(tmp,EVENT_ATTACK); |
| | if (evt != NULL) { |
if (op->current_weapon_script) | | if (op->current_weapon_script) |
free_string(op->current_weapon_script); | | free_string(op->current_weapon_script); |
op->current_weapon_script=add_string(query_name(tmp)); | | op->current_weapon_script=add_string(query_name(tmp)); |