version 1.133 | | version 1.134 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.133 2005/08/12 13:46:34 ryo_saeba Exp $"; | | * "$Id: apply.c,v 1.134 2005/09/04 16:58:12 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
* getting permanently paralyzed. | | * getting permanently paralyzed. |
*/ | | */ |
if (victim->speed_left<-50.0) victim->speed_left=-50.0; | | if (victim->speed_left<-50.0) victim->speed_left=-50.0; |
/* fprintf(stderr,"apply, playermove, player speed_left=%f\n", victim->speed_left);*/ | | /* LOG(llevDebug, "apply, playermove, player speed_left=%f\n", victim->speed_left);*/ |
} | | } |
goto leave; | | goto leave; |
| | |
| | |
| | |
op->stats.food = MIN(999, op->stats.food + meal->stats.food); | | op->stats.food = MIN(999, op->stats.food + meal->stats.food); |
| | |
/*printf("-> player: %d, flesh: %d\n", op->level, meal->level);*/ | | /*LOG(llevDebug, "-> player: %d, flesh: %d\n", op->level, meal->level);*/ |
| | |
/* on to the interesting part: chances for adding resistance */ | | /* on to the interesting part: chances for adding resistance */ |
for (i=0; i<NROFATTACKS; i++) { | | for (i=0; i<NROFATTACKS; i++) { |
| | |
| | |
if (chance >= 0.01 ) totalchance *= 1 - chance/100; | | if (chance >= 0.01 ) totalchance *= 1 - chance/100; |
| | |
/*printf(" %s: bonus %.1f, chance %.1f\n", attacks[i], bonus, chance);*/ | | /*LOG(llevDebug, " %s: bonus %.1f, chance %.1f\n", attacks[i], bonus, chance);*/ |
} | | } |
} | | } |
| | |