version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: gods.c,v 1.2 1999/07/13 06:03:04 cvs Exp $"; | | * "$Id: gods.c,v 1.3 1999/07/30 07:20:16 cvs Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
/* May switch Gods, but its random chance based on our current level | | /* May switch Gods, but its random chance based on our current level |
* note it gets harder to swap gods the higher we get */ | | * note it gets harder to swap gods the higher we get */ |
if((angry==1)&&!(RANDOM()%(pl->chosen_skill->exp_obj->level+1))) | | if((angry==1)&&!(RANDOM()%(pl->chosen_skill->exp_obj->level+1))) { |
| | int i; /* index over known_spells */ |
| | int sp; /* spell index */ |
become_follower(pl,altar->title); | | become_follower(pl,altar->title); |
| | |
| | /* Forget all the special spells from your former God */ |
| | for(i=0;i<pl->contr->nrofknownspells;i++) |
| | if((sp=pl->contr->known_spells[i])>0) { |
| | if(spells[sp].cleric && spells[sp].books == 0) { |
| | pl->contr->nrofknownspells--; |
| | pl->contr->known_spells[i]= |
| | pl->contr->known_spells[pl->contr->nrofknownspells]; |
| | new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,pl, |
| | "You lose your knowledge of %s!",spells[sp].name); |
| | i=0; |
| | } |
| | } |
| | |
| | } |
} | | } |
#endif | | #endif |
| | |