version 1.7 | | version 1.8 |
---|
| | |
/* | | /* |
* static char *rcsid_rune_c = | | * static char *rcsid_rune_c = |
* "$Id: rune.c,v 1.7 2000/06/07 23:46:18 jec Exp $"; | | * "$Id: rune.c,v 1.8 2000/06/09 00:17:22 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* 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?victim->map->difficulty:1),0); | | (victim->map?victim->map->difficulty:1),0); |
if(op->inv) { | | if(op->inv && op->inv->type == DISEASE) { |
object *disease=op->inv; | | object *disease=op->inv; |
remove_ob(op->inv); | | infect_object(victim, disease, 1); |
insert_ob_in_ob(disease,victim); | | remove_ob(disease); |
| | free_object(disease); |
} | | } |
} | | } |
else hit_map(op,0,op->attacktype); | | else hit_map(op,0,op->attacktype); |