version 1.109 | | version 1.110 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.109 2002/12/12 21:52:52 garbled Exp $"; | | * "$Id: player.c,v 1.110 2002/12/13 05:09:49 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
SET_ANIMATION(arrow,dir); | | SET_ANIMATION(arrow,dir); |
arrow->stats.sp = arrow->stats.wc; /* save original wc and dam */ | | arrow->stats.sp = arrow->stats.wc; /* save original wc and dam */ |
arrow->stats.hp = arrow->stats.dam; | | arrow->stats.hp = arrow->stats.dam; |
arrow->attacktype = arrow->stats.grace; | | arrow->stats.grace = arrow->attacktype; |
| | if (arrow->slaying != NULL) |
| | arrow->spellarg = strdup(arrow->slaying); |
/* Note that this was different for monsters - they got their level | | /* Note that this was different for monsters - they got their level |
* added to the damage. I think the strength bonus is more proper. | | * added to the damage. I think the strength bonus is more proper. |
*/ | | */ |
| | |
bow->stats.wc; | | bow->stats.wc; |
arrow->level = SK_level (op); | | arrow->level = SK_level (op); |
arrow->attacktype |= bow->attacktype; | | arrow->attacktype |= bow->attacktype; |
| | if (bow->slaying != NULL) |
| | arrow->slaying = strdup(bow->slaying); |
} else { | | } else { |
arrow->stats.wc= op->stats.wc - bow->magic - arrow->magic - | | arrow->stats.wc= op->stats.wc - bow->magic - arrow->magic - |
arrow->stats.wc; | | arrow->stats.wc; |
arrow->level = op->level; | | arrow->level = op->level; |
arrow->attacktype |= bow->attacktype; | | arrow->attacktype |= bow->attacktype; |
| | if (bow->slaying != NULL) |
| | arrow->slaying = strdup(bow->slaying); |
} | | } |
| | |
arrow->map = op->map; | | arrow->map = op->map; |