version 1.42 | | version 1.43 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.42 2002/11/13 00:26:12 garbled Exp $"; | | * "$Id: living.c,v 1.43 2002/11/26 08:48:20 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* extra strength damage, this is where the code should | | * extra strength damage, this is where the code should |
* go. | | * go. |
*/ | | */ |
#ifdef PLUGINS | | |
if (tmp->event_hook[EVENT_ATTACK] != NULL) { | | if (tmp->event_hook[EVENT_ATTACK] != 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)); |
} | | } |
#endif | | |
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; |