Difference for server/c_wiz.c from version 1.6 to 1.7


version 1.6 version 1.7
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_wiz_c =   * static char *rcsid_c_wiz_c =
  *   "$Id: c_wiz.c,v 1.6 2000/12/18 07:38:25 cvs Exp $";   *   "$Id: c_wiz.c,v 1.7 2000/12/27 07:53:35 cvs Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 341
 
Line 341
         else          else
           head = insert_ob_in_ob(head,op);            head = insert_ob_in_ob(head,op);
         if (at->clone.randomitems!=NULL)          if (at->clone.randomitems!=NULL)
           create_treasure(at->clone.randomitems,head,GT_INVENTORY,            create_treasure(at->clone.randomitems,head,GT_APPLY,
                           op->map->difficulty,0);                            op->map->difficulty,0);
  esrv_send_item(op, head);   esrv_send_item(op, head);
       }        }
Line 774
 
Line 774
   return 0;    return 0;
 }  }
   
   
   static int command_learn_spell_or_prayer (object *op, char *params,
                                             int special_prayer)
   {
       int spell;
   
       if (op->contr == NULL || params == NULL)
           return 0;
   
       if ((spell = look_up_spell_name (params)) <= 0) {
           new_draw_info (NDI_UNIQUE, 0, op, "Unknown spell.");
           return 1;
       }
   
       do_learn_spell (op, spell, special_prayer);
       return 1;
   }
   
   int command_learn_spell (object *op, char *params)
   {
       return command_learn_spell_or_prayer (op, params, 0);
   }
   
   int command_learn_special_prayer (object *op, char *params)
   {
       return command_learn_spell_or_prayer (op, params, 1);
   }
   
   int command_forget_spell (object *op, char *params)
   {
       int spell;
   
       if (op->contr == NULL || params == NULL)
           return 0;
   
       if ((spell = look_up_spell_name (params)) <= 0) {
           new_draw_info (NDI_UNIQUE, 0, op, "Unknown spell.");
           return 1;
       }
   
       do_forget_spell (op, spell);
       return 1;
   }


Legend:
line(s) removed in v.1.6 
line(s) changed
 line(s) added in v.1.7

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