Difference for server/spell_util.c from version 1.67 to 1.68


version 1.67 version 1.68
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_util_c =   * static char *rcsid_spell_util_c =
  *   "$Id: spell_util.c,v 1.67 2002/10/03 07:07:44 mwedel Exp $";   *   "$Id: spell_util.c,v 1.68 2002/11/13 00:26:13 garbled Exp $";
  */   */
   
   
Line 282
 
Line 282
     return(random_roll(1, SP_level_spellpoint_cost(op,caster,type), op,       return(random_roll(1, SP_level_spellpoint_cost(op,caster,type), op,
  PREFER_LOW));   PREFER_LOW));
   }    }
 #ifdef SPELL_ENCUMBRANCE    if(settings.spell_encumbrance == TRUE && item == spellNormal &&
   if(item == spellNormal && op->type==PLAYER && (!s->cleric) ) {       op->type==PLAYER && (!s->cleric) ) {
     int failure = random_roll(0, 199, op, PREFER_LOW) -      int failure = random_roll(0, 199, op, PREFER_LOW) -
  op->contr->encumbrance +op->level -s->level +35;   op->contr->encumbrance +op->level -s->level +35;
   
     if( failure < 0) {      if( failure < 0) {
  new_draw_info(NDI_UNIQUE, 0,op,"You bungle the spell because you have too much heavy equipment in use.");   new_draw_info(NDI_UNIQUE, 0,op,"You bungle the spell because you have too much heavy equipment in use.");
 #ifdef SPELL_FAILURE_EFFECTS   if (settings.spell_failure_effects == TRUE)
         spell_failure(op,failure,SP_level_spellpoint_cost(op,caster,type));          spell_failure(op,failure,SP_level_spellpoint_cost(op,caster,type));
 #endif  
  return(random_roll(0, SP_level_spellpoint_cost(op,caster,type), op, PREFER_LOW));   return(random_roll(0, SP_level_spellpoint_cost(op,caster,type), op, PREFER_LOW));
  }   }
    }     }
 #endif /*SPELL_ENCUMBRANCE*/  
    
 /*  /*
  * This is a simplification of the time it takes to cast a spell.   * This is a simplification of the time it takes to cast a spell.


Legend:
line(s) removed in v.1.67 
line(s) changed
 line(s) added in v.1.68

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