version 1.85 | | version 1.86 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.85 2002/12/18 16:39:59 garbled Exp $"; | | * "$Id: spell_effect.c,v 1.86 2002/12/18 16:52:12 garbled Exp $"; |
*/ | | */ |
| | |
| | |
| | |
value=0; | | value=0; |
else if (obj->type==MONEY || obj->type==GEM) | | else if (obj->type==MONEY || obj->type==GEM) |
value /=3; | | value /=3; |
else if (QUERY_FLAG(obj,FLAG_UNPAID)) value=0; | | else if (QUERY_FLAG(obj, FLAG_UNPAID)) |
| | value=0; |
else | | else |
value *= 0.9; | | value *= 0.9; |
| | |
| | |
| | |
for(tmp=get_map_ob(op->map,x,y);tmp!=NULL;tmp=next) { | | for(tmp=get_map_ob(op->map,x,y);tmp!=NULL;tmp=next) { |
next=tmp->above; | | next=tmp->above; |
if (tmp->weight>0 && !QUERY_FLAG(tmp, FLAG_NO_PICK) | | if (tmp->weight>0 && !QUERY_FLAG(tmp, FLAG_NO_PICK) && |
&& !QUERY_FLAG(tmp, FLAG_ALIVE)) { | | !QUERY_FLAG(tmp, FLAG_ALIVE) && |
| | !QUERY_FLAG(tmp, FLAG_IS_CAULDRON)) { |
if (tmp->inv) { | | if (tmp->inv) { |
object *next1,*tmp1; | | object *next1,*tmp1; |
for (tmp1 = tmp->inv; tmp1!=NULL; tmp1=next1) { | | for (tmp1 = tmp->inv; tmp1!=NULL; tmp1=next1) { |
next1 = tmp1->below; | | next1 = tmp1->below; |
if (tmp1->weight>0 && !QUERY_FLAG(tmp1, FLAG_NO_PICK) && !QUERY_FLAG(tmp1, FLAG_ALIVE)) | | if (tmp1->weight>0 && !QUERY_FLAG(tmp1, FLAG_NO_PICK) && |
| | !QUERY_FLAG(tmp1, FLAG_ALIVE) && |
| | !QUERY_FLAG(tmp1, FLAG_IS_CAULDRON)) |
alchemy_object(tmp1, &small_nuggets, &large_nuggets, | | alchemy_object(tmp1, &small_nuggets, &large_nuggets, |
&weight); | | &weight); |
} | | } |