version 1.33 | | version 1.34 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.33 2001/03/21 05:36:44 mwedel Exp $"; | | * "$Id: apply.c,v 1.34 2001/04/07 02:43:53 darth_bob Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
else { | | else { |
if(op->stats.food+tmp->stats.food>999) { | | if(op->stats.food+tmp->stats.food>999) { |
if(tmp->type==FOOD || tmp->type==FLESH) | | if(tmp->type==FOOD || tmp->type==FLESH) |
new_draw_info(NDI_UNIQUE, 0,op,"You can't possibly eat all that now."); | | new_draw_info(NDI_UNIQUE, 0,op,"You feel full, but what a waste of food!"); |
else | | else |
new_draw_info(NDI_UNIQUE, 0,op,"You can't possibly drink all that now."); | | new_draw_info(NDI_UNIQUE, 0,op,"Most of the drink goes down your face not your throat!"); |
return; | | |
} | | } |
| | |
if(!QUERY_FLAG(tmp, FLAG_CURSED)) { | | if(!QUERY_FLAG(tmp, FLAG_CURSED)) { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
| | |
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); |
else | | else |
| | |
op->stats.hp+=tmp->stats.food/50; | | op->stats.hp+=tmp->stats.food/50; |
if(op->stats.hp>op->stats.maxhp) | | if(op->stats.hp>op->stats.maxhp) |
op->stats.hp=op->stats.maxhp; | | op->stats.hp=op->stats.maxhp; |
| | if (op->stats.food > 999) |
| | op->stats.food = 999; |
} | | } |
/* special food hack -b.t. */ | | /* special food hack -b.t. */ |
if(tmp->title || QUERY_FLAG(tmp,FLAG_CURSED)) eat_special_food(op,tmp); | | if(tmp->title || QUERY_FLAG(tmp,FLAG_CURSED)) eat_special_food(op,tmp); |