Difference for server/spell_util.c from version 1.17 to 1.18


version 1.17 version 1.18
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_util_c =   * static char *rcsid_spell_util_c =
  *   "$Id: spell_util.c,v 1.17 2000/06/13 13:30:03 jec Exp $";   *   "$Id: spell_util.c,v 1.18 2000/10/16 19:19:31 peterm Exp $";
  */   */
   
 /*  /*
Line 309
 
Line 309
     return 0;      return 0;
   }    }
   if(item == spellNormal && op->type==PLAYER&&s->cleric&&    if(item == spellNormal && op->type==PLAYER&&s->cleric&&
      RANDOM()%100< s->level*2 - op->level + cleric_chance[op->stats.Wis]-     /*     RANDOM()%100< s->level*2 - op->level + cleric_chance[op->stats.Wis]-
    op->stats.luck*3) {*/
      RANDOM()%100 < s->level/(float)MAX(1,op->level) * cleric_chance[op->stats.Wis]-
  op->stats.luck*3) {   op->stats.luck*3) {
     play_sound_player_only(op->contr, SOUND_FUMBLE_SPELL,0,0);      play_sound_player_only(op->contr, SOUND_FUMBLE_SPELL,0,0);
     new_draw_info(NDI_UNIQUE, 0,op,"You fumble the spell.");      new_draw_info(NDI_UNIQUE, 0,op,"You fumble the spell.");
Line 848
 
Line 850
  10 * SP_level_strength_adjust(op,caster,spellnum);   10 * SP_level_strength_adjust(op,caster,spellnum);
   tmp->stats.dam= SP_PARAMETERS[spellnum].bdam +    tmp->stats.dam= SP_PARAMETERS[spellnum].bdam +
  2* SP_level_dam_adjust(op,caster,spellnum);   2* SP_level_dam_adjust(op,caster,spellnum);
     tmp->stats.wc -= SP_level_dam_adjust(op,caster,spellnum);
     tmp->speed += .05 * SP_level_dam_adjust(op,caster,spellnum);
     /* limit the speed to 1 */
     tmp->speed = MIN(tmp->speed,1);
   if(tmp->stats.dam<0) tmp->stats.dam=127;  /*seen this go negative!*/    if(tmp->stats.dam<0) tmp->stats.dam=127;  /*seen this go negative!*/
  /*  make experience increase in proportion to the strength of the summoned creature. */   /*  make experience increase in proportion to the strength of the summoned creature. */
   tmp->stats.exp *= SP_level_spellpoint_cost(op,caster,spellnum)/spells[spellnum].sp;    tmp->stats.exp *= SP_level_spellpoint_cost(op,caster,spellnum)/spells[spellnum].sp;


Legend:
line(s) removed in v.1.17 
line(s) changed
 line(s) added in v.1.18

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