version 1.47 | | version 1.48 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.47 2001/10/14 07:57:14 gros Exp $"; | | * "$Id: apply.c,v 1.48 2001/10/15 21:12:08 garbled Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
} | | } |
| | |
for(j=0;excess_stat >0 && j<100;j++) {/* try 100 times to assign excess stats */ | | for(j=0;excess_stat >0 && j<100;j++) {/* try 100 times to assign excess stats */ |
int i = RANDOM() %7; | | int i = rndm(0, 6); |
int stat=get_attr_value(stats,i); | | int stat=get_attr_value(stats,i); |
int race_bonus = get_attr_value(&(pl->arch->clone.stats),i); | | int race_bonus = get_attr_value(&(pl->arch->clone.stats),i); |
if(i==CHA) continue; /* exclude cha from this */ | | if(i==CHA) continue; /* exclude cha from this */ |