Difference for server/spell_effect.c from version 1.85 to 1.86


version 1.85 version 1.86
Line 1
 
Line 1
 /*  /*
  * 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 $";
  */   */
   
   
Line 2089
 
Line 2089
  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;
   
Line 2171
 
Line 2172
   
  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);
  }   }


Legend:
line(s) removed in v.1.85 
line(s) changed
 line(s) added in v.1.86

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:48