version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_utils_c = | | * static char *rcsid_utils_c = |
* "$Id: utils.c,v 1.2 2001/10/01 19:10:27 garbled Exp $"; | | * "$Id: utils.c,v 1.3 2001/10/01 19:29:11 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
((luck > 0) ? (luck = 1) : (luck = -1)); | | ((luck > 0) ? (luck = 1) : (luck = -1)); |
diff -= luck; | | diff -= luck; |
if (diff < 1) | | if (diff < 1) |
return(omin); /*check again*/ | | return(num); /*check again*/ |
((goodbad) ? (min += luck) : (diff)); | | ((goodbad) ? (min += luck) : (diff)); |
total += MAX(1, MIN(size, (RANDOM()%diff)+min)); | | total += MAX(1, MIN(size, (RANDOM()%diff)+min)); |
} else { | | } else { |