version 1.56 | | version 1.57 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.56 2002/02/08 15:07:45 avogl Exp $"; | | * "$Id: apply.c,v 1.57 2002/02/08 15:43:31 avogl Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
goto leave; | | goto leave; |
| | |
case SIGN: | | case SIGN: |
| | if (victim->type != PLAYER && trap->stats.food > 0) |
| | return; /* monsters musn't apply magic_mouths with counters */ |
apply_sign (victim, trap); | | apply_sign (victim, trap); |
goto leave; | | goto leave; |
| | |
| | |
} | | } |
} | | } |
| | |
/* monsters mustn't apply random chests */ | | /* monsters mustn't apply random chests, nor magic_mouths with a counter */ |
if (op->type != PLAYER && tmp->type == TREASURE) | | if (op->type != PLAYER && tmp->type == TREASURE) |
return 0; | | return 0; |
| | |