version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_treasure_c = | | * static char *rcsid_treasure_c = |
* "$Id: treasure.c,v 1.4 2000/06/19 01:34:31 cvs Exp $"; | | * "$Id: treasure.c,v 1.5 2000/06/20 07:33:38 peterm Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if(treasureoptions<=0) treasureoptions=RANDOM() % (2*LAST_OPTION); | | if(treasureoptions<=0) treasureoptions=RANDOM() % (2*LAST_OPTION); |
| | |
/* filter out the mutually exclusive options */ | | /* filter out the mutually exclusive options */ |
if(treasureoptions & (RICH|SPARSE)) { | | if((treasureoptions & RICH) &&(treasureoptions &SPARSE)) { |
if(RANDOM()%2) treasureoptions -=1; | | if(RANDOM()%2) treasureoptions -=1; |
else treasureoptions-=2;} | | else treasureoptions-=2;} |
| | |