version 1.11 | | version 1.12 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.11 2001/01/15 22:33:32 cvs Exp $"; | | * "$Id: skills.c,v 1.12 2001/03/21 06:14:24 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
chance=SK_level(pl)*2+(stat1-2*tmp->stats.Int)/2; | | chance=SK_level(pl)*2+(stat1-2*tmp->stats.Int)/2; |
| | |
/* Ok, got a 'sucker' lets try to make them a follower */ | | /* Ok, got a 'sucker' lets try to make them a follower */ |
if(chance && tmp->level<(RANDOM()%chance)) { | | if(chance>0 && tmp->level<(RANDOM()%chance)) { |
new_draw_info_format(NDI_UNIQUE, 0,pl, | | new_draw_info_format(NDI_UNIQUE, 0,pl, |
"You convince the %s to become your follower.\n", | | "You convince the %s to become your follower.\n", |
query_name(tmp)); | | query_name(tmp)); |