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


version 1.18 version 1.19
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_util_c =   * static char *rcsid_spell_util_c =
  *   "$Id: spell_util.c,v 1.18 2000/10/16 19:19:31 peterm Exp $";   *   "$Id: spell_util.c,v 1.19 2000/10/20 06:34:02 peterm Exp $";
  */   */
   
 /*  /*
Line 851
 
Line 851
   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->stats.wc -= SP_level_dam_adjust(op,caster,spellnum);
   tmp->speed += .05 * SP_level_dam_adjust(op,caster,spellnum);    if(tmp->speed < 0) tmp->speed = -tmp->speed;
   /* limit the speed to 1 */    tmp->speed += .02 * SP_level_dam_adjust(op,caster,spellnum);
   tmp->speed = MIN(tmp->speed,1);    /* limit the speed to 0.3 for non-players, 1 for players. */
     if(op->type!=PLAYER)
       tmp->speed = MIN(tmp->speed,0.3);
     tmp->speed = MIN(tmp->speed, 1.0);
   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.18 
line(s) changed
 line(s) added in v.1.19

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