version 1.22 | | version 1.23 |
---|
| | |
/* | | /* |
* static char *rcsid_utils_c = | | * static char *rcsid_utils_c = |
* "$Id: utils.c,v 1.22 2006/01/08 22:47:56 qal21 Exp $"; | | * "$Id: utils.c,v 1.23 2006/02/09 00:48:36 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* not the recipient (ie, the poor slob getting hit). [garbled 20010916] | | * not the recipient (ie, the poor slob getting hit). [garbled 20010916] |
*/ | | */ |
| | |
int random_roll(int min, int max, object *op, int goodbad) { | | int random_roll(int min, int max, const object *op, int goodbad) { |
int omin, diff, luck, base, ran; | | int omin, diff, luck, base, ran; |
| | |
omin = min; | | omin = min; |
| | |
* for exp loss calculations for players changing religions. | | * for exp loss calculations for players changing religions. |
*/ | | */ |
| | |
sint64 random_roll64(sint64 min, sint64 max, object *op, int goodbad) { | | sint64 random_roll64(sint64 min, sint64 max, const object *op, int goodbad) { |
sint64 omin, diff, luck, ran; | | sint64 omin, diff, luck, ran; |
int base; | | int base; |
| | |
| | |
* The args are num D size (ie 4d6) [garbled 20010916] | | * The args are num D size (ie 4d6) [garbled 20010916] |
*/ | | */ |
| | |
int die_roll(int num, int size, object *op, int goodbad) { | | int die_roll(int num, int size, const object *op, int goodbad) { |
int min, diff, luck, total, i, gotlucky, base, ran; | | int min, diff, luck, total, i, gotlucky, base, ran; |
| | |
diff = size; | | diff = size; |
| | |
* as some that did not apply previously, may apply now. | | * as some that did not apply previously, may apply now. |
*/ | | */ |
| | |
void transmute_materialname(object *op, object *change) | | void transmute_materialname(object *op, const object *change) |
{ | | { |
materialtype_t *mt; | | materialtype_t *mt; |
int j; | | int j; |