version 1.21 | | version 1.22 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.21 2001/01/08 21:33:11 avogl Exp $"; | | * "$Id: living.c,v 1.22 2001/02/01 05:02:55 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if(pl_level<1) pl_level=1; /* safety, we should always get 1 levels worth of hp! */ | | if(pl_level<1) pl_level=1; /* safety, we should always get 1 levels worth of hp! */ |
for(i=1,op->stats.maxhp=0;i<=pl_level&&i<=10;i++) { | | for(i=1,op->stats.maxhp=0;i<=pl_level&&i<=10;i++) { |
j=op->contr->levhp[i]+con_bonus[op->stats.Con]/2; | | j=op->contr->levhp[i]+con_bonus[op->stats.Con]/2; |
if(i%2&&con_bonus[op->stats.Con]%2) | | if(i%2&&con_bonus[op->stats.Con]%2) { |
| | if (con_bonus[op->stats.Con]>0) |
j++; | | j++; |
| | else |
| | j--; |
| | } |
op->stats.maxhp+=j>1?j:1; | | op->stats.maxhp+=j>1?j:1; |
} | | } |
for(i=11;i<=op->level;i++) | | for(i=11;i<=op->level;i++) |