[CF-Devel] Re: [Crossfire-cvs] CVS update: crossfire/server

Jan Echternach echter at informatik.uni-rostock.de
Wed Jan 10 03:42:17 CST 2001


On Tue, Jan 09, 2001 at 03:50:37PM -0800, 
     
     crossfire-cvs-admin at lists.sourceforge.net
     
      wrote:
>
     
      diff -u crossfire/server/apply.c:1.28 crossfire/server/apply.c:1.29
     
     >
     
      --- crossfire/server/apply.c:1.28	Tue Dec 26 23:53:35 2000
     
     >
     
      +++ crossfire/server/apply.c	Tue Jan  9 15:50:37 2001
     
     >
     
      @@ -1575,7 +1579,7 @@
     
     >
     
           } 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]) {
     
     >
     
             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 */
     
     >
     
             if ( ! QUERY_FLAG (tmp, FLAG_STARTEQUIP))
     
     >
     
               add_exp(op,calc_skill_exp(op,tmp));
     
     
Why this change?  The purpose if tmp->stats.Wis is to support the
god_spellbook_*.arc objects as an alternative to the old-style
god_spelldirect_*.arc objects.  god_intervention() inserts a spellbook
with stats.Wis = 1 in the players inventory.  This seems to be broken
now.

-- 
Jan

    
    


More information about the crossfire mailing list