version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_rune_c = | | * static char *rcsid_rune_c = |
* "$Id: rune.c,v 1.2 1999/07/13 06:03:04 cvs Exp $"; | | * "$Id: rune.c,v 1.3 1999/08/22 23:39:51 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
hit_player(victim,op->stats.dam,op,op->attacktype); | | hit_player(victim,op->stats.dam,op,op->attacktype); |
/* if there's a disease in the needle, put it in the player */ | | /* if there's a disease in the needle, put it in the player */ |
if(op->randomitems!=NULL) create_treasure(op->randomitems,op,GT_INVENTORY, | | if(op->randomitems!=NULL) create_treasure(op->randomitems,op,GT_INVENTORY, |
victim->map->difficulty,0); | | (victim->map?victim->map->difficulty:1),0); |
if(op->inv) { | | if(op->inv) { |
object *disease=op->inv; | | object *disease=op->inv; |
remove_ob(op->inv); | | remove_ob(op->inv); |
| | |
} | | } |
} | | } |
else hit_map(op,0,op->attacktype); | | else hit_map(op,0,op->attacktype); |
| | |
} | | } |
| | |
/* This function generalizes attacks by runes/traps. This ought to make | | /* This function generalizes attacks by runes/traps. This ought to make |