Difference for server/player.c from version 1.55 to 1.56


version 1.55 version 1.56
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.55 2001/05/09 06:58:12 mwedel Exp $";   *   "$Id: player.c,v 1.56 2001/05/25 02:42:26 mardahl Exp $";
  */   */
   
 /*  /*
Line 1672
 
Line 1672
     kill_player(op);      kill_player(op);
 }  }
   
         
   
 /* If the player should die (lack of hp, food, etc), we call this.  /* If the player should die (lack of hp, food, etc), we call this.
  * op is the player in jeopardy.  If the player can not be saved (not   * op is the player in jeopardy.  If the player can not be saved (not
  * permadeath, no lifesave), this will take care of removing the player   * permadeath, no lifesave), this will take care of removing the player
Line 1761
 
Line 1763
   
 #ifdef NOT_PERMADEATH  #ifdef NOT_PERMADEATH
     /* NOT_PERMADEATH code.  This basically brings the character back to life      /* NOT_PERMADEATH code.  This basically brings the character back to life
      * if they are dead - it takes some and a random stat.  See the config.h       * if they are dead - it takes some exp and a random stat.  See the config.h
      * file for a little more in depth detail about this.       * file for a little more in depth detail about this.
      */       */
   
Line 1873
 
Line 1875
     sprintf(buf,"%s's gravestone",op->name);      sprintf(buf,"%s's gravestone",op->name);
     tmp->name=add_string(buf);      tmp->name=add_string(buf);
     sprintf(buf,"RIP\nHere rests the hero %s the %s,\n"      sprintf(buf,"RIP\nHere rests the hero %s the %s,\n"
          "who lost %d experience when killed\n"           "who was killed\n"
          "by %s.\n",           "by %s.\n",
          op->name, op->contr->title, (int)(op->stats.exp * 0.20),           op->name, op->contr->title,
          op->contr->killer);           op->contr->killer);
     tmp->msg = add_string(buf);      tmp->msg = add_string(buf);
     tmp->x=op->x,tmp->y=op->y;      tmp->x=op->x,tmp->y=op->y;
Line 1894
 
Line 1896
     cast_heal(op, 0, SP_CURE_CONFUSION);      cast_heal(op, 0, SP_CURE_CONFUSION);
  cure_disease(op,0);  /* remove any disease */   cure_disease(op,0);  /* remove any disease */
    
     add_exp(op, (op->stats.exp * -0.20));      /*add_exp(op, (op->stats.exp * -0.20)); */
     if(op->stats.food < 0) op->stats.food = 500;      apply_death_exp_penalty(op);
       if(op->stats.food < 0) op->stats.food = 900;
     op->stats.hp = op->stats.maxhp;      op->stats.hp = op->stats.maxhp;
   
  /*   /*


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

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