version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.17 2000/06/18 20:09:10 jec Exp $"; | | * "$Id: apply.c,v 1.18 2000/06/20 07:33:38 peterm Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
if(QUERY_FLAG(tmp,FLAG_AUTO_APPLY)) | | if(QUERY_FLAG(tmp,FLAG_AUTO_APPLY)) |
auto_apply(tmp); | | auto_apply(tmp); |
else if(tmp->type==TREASURE) { | | else if((tmp->type==TREASURE || (tmp->type==CONTAINER))&&tmp->randomitems) { |
while ((tmp->stats.hp--)>0) | | while ((tmp->stats.hp--)>0) |
create_treasure(tmp->randomitems, tmp, GT_INVENTORY, | | create_treasure(tmp->randomitems, tmp, GT_INVENTORY, |
m->difficulty,0); | | m->difficulty,0); |