version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_rune_c = | | * static char *rcsid_rune_c = |
* "$Id: rune.c,v 1.10 2000/12/04 00:40:05 cvs Exp $"; | | * "$Id: rune.c,v 1.11 2000/12/27 07:53:35 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 1994 Mark Wedel | | Copyright (C) 2000 Mark Wedel |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
along with this program; if not, write to the Free Software | | along with this program; if not, write to the Free Software |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | |
The author can be reached via e-mail to master@rahul.net | | The author can be reached via e-mail to mwedel@scruz.net |
*/ | | */ |
| | |
#include <global.h> | | #include <global.h> |
| | |
if (was_destroyed (victim, tag)) | | if (was_destroyed (victim, tag)) |
return; | | return; |
/* 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,0, |
(victim->map?victim->map->difficulty:1),0); | | (victim->map?victim->map->difficulty:1),0); |
if(op->inv && op->inv->type == DISEASE) { | | if(op->inv && op->inv->type == DISEASE) { |
object *disease=op->inv; | | object *disease=op->inv; |