version 1.141 | | version 1.142 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.141 2005/10/06 23:36:20 akirschbaum Exp $"; | | * "$Id: apply.c,v 1.142 2005/10/07 19:38:49 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if (tmp->stats.hp > 0) { | | if (tmp->stats.hp > 0) { |
LOG(llevDebug,"Trying to poison player/monster for %d hp\n", | | LOG(llevDebug,"Trying to poison player/monster for %d hp\n", |
tmp->stats.hp); | | tmp->stats.hp); |
hit_player(op, tmp->stats.hp, tmp, AT_POISON); | | hit_player(op, tmp->stats.hp, tmp, AT_POISON, 1); |
} | | } |
op->stats.food-=op->stats.food/4; | | op->stats.food-=op->stats.food/4; |
decrease_ob(tmp); | | decrease_ob(tmp); |
| | |
if(food->stats.hp!=0) { | | if(food->stats.hp!=0) { |
if(QUERY_FLAG(food, FLAG_CURSED)) { | | if(QUERY_FLAG(food, FLAG_CURSED)) { |
strcpy(who->contr->killer,food->name); | | strcpy(who->contr->killer,food->name); |
hit_player(who, food->stats.hp, food, AT_POISON); | | hit_player(who, food->stats.hp, food, AT_POISON, 1); |
new_draw_info(NDI_UNIQUE, 0,who,"Eck!...that was poisonous!"); | | new_draw_info(NDI_UNIQUE, 0,who,"Eck!...that was poisonous!"); |
} else { | | } else { |
if(food->stats.hp>0) | | if(food->stats.hp>0) |