version 1.18 | | version 1.19 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.18 2000/05/29 16:31:26 jec Exp $"; | | * "$Id: spell_effect.c,v 1.19 2000/06/04 22:26:08 cvs Exp $"; |
*/ | | */ |
| | |
| | |
| | |
disease->stats.exp = 0; | | disease->stats.exp = 0; |
disease->level = op->level; | | disease->level = op->level; |
| | |
| | /* Try to get the experience into the correct category */ |
| | if(op->chosen_skill && op->chosen_skill->exp_obj) |
| | disease->exp_obj = op->chosen_skill->exp_obj; |
| | |
/*do level adjustments */ | | /*do level adjustments */ |
if(disease->stats.wc) | | if(disease->stats.wc) |
disease->stats.wc += SP_level_strength_adjust(op,caster,type)/2; | | disease->stats.wc += SP_level_strength_adjust(op,caster,type)/2; |
| | |
if(disease->magic) | | if(disease->magic> 0) |
disease->magic += SP_level_strength_adjust(op,caster,type)/4; | | disease->magic += SP_level_strength_adjust(op,caster,type)/4; |
| | |
if(disease->stats.maxhp>0) | | if(disease->stats.maxhp>0) |