version 1.29 | | version 1.30 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.29 2001/09/26 21:12:33 garbled Exp $"; | | * "$Id: living.c,v 1.30 2001/10/31 07:00:24 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
free_string (op->slaying); | | free_string (op->slaying); |
add_refcount(op->slaying = tmp->slaying); | | add_refcount(op->slaying = tmp->slaying); |
} | | } |
| | #ifdef PLUGINS |
| | if (tmp->event_hook[EVENT_ATTACK] != NULL) { |
| | if (op->current_weapon_script) |
| | free_string(op->current_weapon_script); |
| | op->current_weapon_script=add_string(query_name(tmp)); |
| | } |
| | #endif |
| | op->current_weapon = tmp; |
| | |
#ifdef SPELL_ENCUMBRANCE | | #ifdef SPELL_ENCUMBRANCE |
if(op->type==PLAYER) op->contr->encumbrance+=(int)3*tmp->weight/1000; | | if(op->type==PLAYER) op->contr->encumbrance+=(int)3*tmp->weight/1000; |
#endif | | #endif |