Difference for server/monster.c from version 1.56 to 1.57


version 1.56 version 1.57
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_monster_c =   * static char *rcsid_monster_c =
  *    "$Id: monster.c,v 1.56 2002/12/21 08:02:34 mwedel Exp $";   *    "$Id: monster.c,v 1.57 2003/01/04 00:28:52 mwedel Exp $";
  */   */
   
 /*  /*
Line 348
 
Line 348
   
  op->last_heal+= (int)((float)(8*op->stats.Con)/FABS(op->speed));   op->last_heal+= (int)((float)(8*op->stats.Con)/FABS(op->speed));
  op->stats.hp+=op->last_heal/32; /* causes Con/4 hp/tick */   op->stats.hp+=op->last_heal/32; /* causes Con/4 hp/tick */
    op->last_heal%=32;
   
  /* Try to track down bug of really high hp in mosnters */   /* After putting the debug in, turns out quite a few monsters
    * end up with hp higher than they should have - in most cases,
    * this is just a few (53 instead of 50)  But I also say cases
    * where the difference was much greater (450 vs 250, 1057 vs 500, etc)
    * so putting in this sanity check is probably a good thing no
    * matter what.
    */
  if (op->stats.hp > op->stats.maxhp)    if (op->stats.hp > op->stats.maxhp)
      LOG(llevDebug,"Creatures hp exceeds in maxhp (%d > %d), last_heal=%d\n",       op->stats.hp = op->stats.maxhp;
  op->stats.hp, op->stats.maxhp, op->last_heal);  
   
  op->last_heal%=32;  
   
  /* So if the monster has gained enough HP that they are no longer afraid */   /* So if the monster has gained enough HP that they are no longer afraid */
  if (QUERY_FLAG(op,FLAG_RUN_AWAY) &&   if (QUERY_FLAG(op,FLAG_RUN_AWAY) &&


Legend:
line(s) removed in v.1.56 
line(s) changed
 line(s) added in v.1.57

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