version 1.13 | | version 1.14 |
---|
| | |
/* | | /* |
* static char *rcsid_gods_c = | | * static char *rcsid_gods_c = |
* "$Id: gods.c,v 1.13 2000/12/27 07:53:35 cvs Exp $"; | | * "$Id: gods.c,v 1.14 2001/01/01 23:09:32 avogl Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
/* Every once in a while, the god decides to checkup on their | | /* Every once in a while, the god decides to checkup on their |
* follower, and may intervene to help them out. | | * follower, and may intervene to help them out. |
*/ | | */ |
bonus += pl->stats.luck; /* -- DAMN -- */ | | bonus = MAX(1, bonus + MAX(pl->stats.luck, -3)); /* -- DAMN -- */ |
if((RANDOM()%500-bonus)<0) god_intervention(pl,pl_god); | | |
| | if(((RANDOM()%400)-bonus)<0) god_intervention(pl,pl_god); |
| | |
} else { /* praying to another god! */ | | } else { /* praying to another god! */ |
int loss = 0,angry=1; | | int loss = 0,angry=1; |