Difference for common/living.c from version 1.63 to 1.64


version 1.63 version 1.64
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_living_c =   * static char *rcsid_living_c =
  *   "$Id: living.c,v 1.63 2004/04/10 07:27:56 mwedel Exp $";   *   "$Id: living.c,v 1.64 2004/10/15 07:09:35 mwedel Exp $";
  */   */
   
 /*  /*
Line 1528
 
Line 1528
     if(!op)        /* when rolling stats */       if(!op)        /* when rolling stats */
  op = who;    op = who;
    
     if(op->level < settings.max_level && op->stats.exp >= level_exp(op->level+1,op->expmul)) {      if(op->level < settings.max_level && op->stats.exp >= level_exp(op->level+1,who->expmul)) {
  op->level++;   op->level++;
    
  if (op != NULL && op == who && op->stats.exp > 1 && is_dragon_pl(who))   if (op != NULL && op == who && op->stats.exp > 1 && is_dragon_pl(who))
    dragon_level_gain(who);     dragon_level_gain(who);
    
  if(who && (who->level < 11) && who->type==PLAYER) {           /* Only roll these if it is the player (who) that gained the level */
    if(who && op==who && (who->level < 11) && who->type==PLAYER) {
      who->contr->levhp[who->level] = die_roll(2, 4, who, PREFER_HIGH)+1;       who->contr->levhp[who->level] = die_roll(2, 4, who, PREFER_HIGH)+1;
      who->contr->levsp[who->level] = die_roll(2, 3, who, PREFER_HIGH);       who->contr->levsp[who->level] = die_roll(2, 3, who, PREFER_HIGH);
      who->contr->levgrace[who->level]=die_roll(2, 2, who, PREFER_HIGH)-1;       who->contr->levgrace[who->level]=die_roll(2, 2, who, PREFER_HIGH)-1;
Line 1549
 
Line 1550
      if(who) (*draw_info_func)(NDI_UNIQUE|NDI_RED, 0, who,buf);       if(who) (*draw_info_func)(NDI_UNIQUE|NDI_RED, 0, who,buf);
  }   }
  player_lvl_adj(who,op); /* To increase more levels */   player_lvl_adj(who,op); /* To increase more levels */
     } else if (op->level>1 && op->stats.exp<level_exp(op->level,op->expmul)) {      } else if (op->level>1 && op->stats.exp<level_exp(op->level,who->expmul)) {
  op->level--;   op->level--;
  if(who) fix_player(who);   if(who) fix_player(who);
  if(op->type!=PLAYER) {   if(op->type!=PLAYER) {


Legend:
line(s) removed in v.1.63 
line(s) changed
 line(s) added in v.1.64

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