Difference for server/apply.c from version 1.28 to 1.29


version 1.28 version 1.29
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_apply_c =   * static char *rcsid_apply_c =
  *   "$Id: apply.c,v 1.28 2000/12/27 07:53:35 cvs Exp $";   *   "$Id: apply.c,v 1.29 2001/01/09 23:50:37 avogl Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 1459
 
Line 1459
     op->contr->known_spells[op->contr->nrofknownspells++] = spell;      op->contr->known_spells[op->contr->nrofknownspells++] = spell;
     if (op->contr->nrofknownspells == 1)      if (op->contr->nrofknownspells == 1)
         op->contr->chosen_spell = spell;          op->contr->chosen_spell = spell;
      
       /* For godgiven spells the player gets a reminder-mark inserted,
          that this spell must be removed on changing cults! */
       if (special_prayer)
     insert_special_prayer_mark (op, spell);      insert_special_prayer_mark (op, spell);
   
     new_draw_info_format (NDI_UNIQUE, 0, op,       new_draw_info_format (NDI_UNIQUE, 0, op,
Line 1480
 
Line 1484
         return;          return;
     }      }
   
     new_draw_info_format (NDI_UNIQUE, 0, op, "You lose knowledge of %s.",      new_draw_info_format (NDI_UNIQUE|NDI_NAVY, 0, op,
                           spells[spell].name);     "You lose knowledge of %s.", spells[spell].name);
   
     tmp = find_special_prayer_mark (op, spell);      tmp = find_special_prayer_mark (op, spell);
     if (tmp) {      if (tmp) {
Line 1575
 
Line 1579
     } else if(QUERY_FLAG(tmp,FLAG_STARTEQUIP) || RANDOM()%150-(2*SK_level(op)) <      } else if(QUERY_FLAG(tmp,FLAG_STARTEQUIP) || RANDOM()%150-(2*SK_level(op)) <
  learn_spell[spells[tmp->stats.sp].cleric ? op->stats.Wis : op->stats.Int]) {   learn_spell[spells[tmp->stats.sp].cleric ? op->stats.Wis : op->stats.Int]) {
       new_draw_info(NDI_UNIQUE, 0,op,"You succeed in learning the spell!");        new_draw_info(NDI_UNIQUE, 0,op,"You succeed in learning the spell!");
       do_learn_spell (op, tmp->stats.sp, tmp->stats.Wis);        do_learn_spell (op, tmp->stats.sp, 0);
 #ifdef ALLOW_SKILLS /* xp gain to literacy for spell learning */  #ifdef ALLOW_SKILLS /* xp gain to literacy for spell learning */
       if ( ! QUERY_FLAG (tmp, FLAG_STARTEQUIP))        if ( ! QUERY_FLAG (tmp, FLAG_STARTEQUIP))
         add_exp(op,calc_skill_exp(op,tmp));          add_exp(op,calc_skill_exp(op,tmp));


Legend:
line(s) removed in v.1.28 
line(s) changed
 line(s) added in v.1.29

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