version 1.59 | | version 1.60 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.59 2002/03/01 21:33:11 avogl Exp $"; | | * "$Id: apply.c,v 1.60 2002/03/03 20:05:58 avogl Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
op->stats.hp=op->stats.maxhp; | | op->stats.hp=op->stats.maxhp; |
else { | | else { |
/* check if this is a dragon (player), eating some flesh */ | | /* check if this is a dragon (player), eating some flesh */ |
if (tmp->type==FLESH && strcmp(op->race, "dragon")==0 | | if (tmp->type==FLESH && is_dragon_pl(op) && dragon_eat_flesh(op, tmp)) |
&& dragon_eat_flesh(op, tmp)) | | |
; | | ; |
else { | | else { |
/* usual case - no dragon meal: */ | | /* usual case - no dragon meal: */ |
| | |
if(!QUERY_FLAG(tmp, FLAG_CURSED)) { | | if(!QUERY_FLAG(tmp, FLAG_CURSED)) { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
| | |
if (strcmp(op->race, "dragon")!=0) { | | if (!is_dragon_pl(op)) { |
/* eating message for normal players*/ | | /* eating message for normal players*/ |
if(tmp->type==DRINK) | | if(tmp->type==DRINK) |
sprintf(buf,"Ahhh...that %s tasted good.",tmp->name); | | sprintf(buf,"Ahhh...that %s tasted good.",tmp->name); |
| | |
int MAXLEVEL = 110; | | int MAXLEVEL = 110; |
| | |
/* let's make sure and doublecheck the parameters */ | | /* let's make sure and doublecheck the parameters */ |
if (op->type!=PLAYER || meal->type!=FLESH || strcmp(op->race, "dragon")!=0) | | if (meal->type!=FLESH || !is_dragon_pl(op)) |
return 0; | | return 0; |
| | |
/* now grab the 'dragon_skin'- and 'dragon_ability'-forces | | /* now grab the 'dragon_skin'- and 'dragon_ability'-forces |