version 1.19 | | version 1.20 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.19 2001/07/14 04:11:18 mwedel Exp $"; | | * "$Id: skill_util.c,v 1.20 2001/09/26 21:34:08 garbled Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
return 2; | | return 2; |
} | | } |
/* now a random change to learn, based on player Int */ | | /* now a random change to learn, based on player Int */ |
if(RANDOM()%100>learn_spell[pl->stats.Int]) | | if(random_roll(0, 99, pl, PREFER_LOW)>learn_spell[pl->stats.Int]) |
return 2; /* failure :< */ | | return 2; /* failure :< */ |
| | |
/* Everything is cool. Give'em the skill */ | | /* Everything is cool. Give'em the skill */ |