version 1.18 | | version 1.19 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_util_c = | | * static char *rcsid_spell_util_c = |
* "$Id: spell_util.c,v 1.18 2000/10/16 19:19:31 peterm Exp $"; | | * "$Id: spell_util.c,v 1.19 2000/10/20 06:34:02 peterm Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
tmp->stats.dam= SP_PARAMETERS[spellnum].bdam + | | tmp->stats.dam= SP_PARAMETERS[spellnum].bdam + |
2* SP_level_dam_adjust(op,caster,spellnum); | | 2* SP_level_dam_adjust(op,caster,spellnum); |
tmp->stats.wc -= SP_level_dam_adjust(op,caster,spellnum); | | tmp->stats.wc -= SP_level_dam_adjust(op,caster,spellnum); |
tmp->speed += .05 * SP_level_dam_adjust(op,caster,spellnum); | | if(tmp->speed < 0) tmp->speed = -tmp->speed; |
/* limit the speed to 1 */ | | tmp->speed += .02 * SP_level_dam_adjust(op,caster,spellnum); |
tmp->speed = MIN(tmp->speed,1); | | /* limit the speed to 0.3 for non-players, 1 for players. */ |
| | if(op->type!=PLAYER) |
| | tmp->speed = MIN(tmp->speed,0.3); |
| | tmp->speed = MIN(tmp->speed, 1.0); |
if(tmp->stats.dam<0) tmp->stats.dam=127; /*seen this go negative!*/ | | if(tmp->stats.dam<0) tmp->stats.dam=127; /*seen this go negative!*/ |
/* make experience increase in proportion to the strength of the summoned creature. */ | | /* make experience increase in proportion to the strength of the summoned creature. */ |
tmp->stats.exp *= SP_level_spellpoint_cost(op,caster,spellnum)/spells[spellnum].sp; | | tmp->stats.exp *= SP_level_spellpoint_cost(op,caster,spellnum)/spells[spellnum].sp; |