version 1.88 | | version 1.89 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.88 2005/09/13 06:46:35 mwedel Exp $"; | | * "$Id: monster.c,v 1.89 2005/09/23 23:36:17 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
monster_apply_below(op); /* Check for items to apply below */ | | monster_apply_below(op); /* Check for items to apply below */ |
| | |
/* generate hp, if applicable */ | | /* generate hp, if applicable */ |
if(op->stats.Con&&op->stats.hp<op->stats.maxhp) { | | if(op->stats.Con > 0 && op->stats.hp < op->stats.maxhp) { |
| | |
/* last heal is in funny units. Dividing by speed puts | | /* last heal is in funny units. Dividing by speed puts |
* the regeneration rate on a basis of time instead of | | * the regeneration rate on a basis of time instead of |
| | |
} | | } |
| | |
/* generate sp, if applicable */ | | /* generate sp, if applicable */ |
if(op->stats.Pow&&op->stats.sp<op->stats.maxsp) { | | if(op->stats.Pow > 0 && op->stats.sp < op->stats.maxsp) { |
| | |
/* last_sp is in funny units. Dividing by speed puts | | /* last_sp is in funny units. Dividing by speed puts |
* the regeneration rate on a basis of time instead of | | * the regeneration rate on a basis of time instead of |