char *ds;
const char *ds;
get_damage(ds, r)	char *ds;	boolean r;{	int i = 0, j, n, d, total = 0;	while (ds[i]) {		n = get_number(ds + i);		while ((ds[i] != 'd') && ds[i])			i++;		if (ds[i] == 'd')			i++;		d = get_number(ds + i);		while ((ds[i] != '/') && ds[i])			i++;		if (ds[i] == '/')			i++;		for (j = 0; j < n; j++) {			if (r) {				total += get_rand(1, d);			} else {				total += d;			}		}	}	return(total);}