version 1.6 | | version 1.7 |
---|
| | |
/* | | /* |
* static char *rcsid_resurrection_c = | | * static char *rcsid_resurrection_c = |
* "$Id: resurrection.c,v 1.6 2001/07/14 04:11:18 mwedel Exp $"; | | * "$Id: resurrection.c,v 1.7 2001/10/15 21:12:08 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
chance+=levelcaster-leveldead; | | chance+=levelcaster-leveldead; |
if(chance<4) chance=4; | | if(chance<4) chance=4; |
if(chance>RANDOM()%20) return 0; /* resurrection succeeds */ | | if(chance>rndm(0, 19)) return 0; /* resurrection succeeds */ |
return 1; | | return 1; |
} | | } |
| | |
| | |
} | | } |
if(rspell==SP_REINCARNATION) { | | if(rspell==SP_REINCARNATION) { |
if(! (strcmp(buf2,"race"))) { | | if(! (strcmp(buf2,"race"))) { |
sprintf(buf,"race %s\n",races[RANDOM()%12+1]); | | sprintf(buf,"race %s\n",races[rndm(1, 12)]); |
} | | } |
} | | } |
fputs(buf,liveplayer); | | fputs(buf,liveplayer); |