version 1.123 | | version 1.124 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.123 2004/12/29 08:45:09 mwedel Exp $"; | | * "$Id: spell_effect.c,v 1.124 2005/01/12 08:04:01 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
tmp->y=op->y; | | tmp->y=op->y; |
tmp->range+=lvl/5; /* increase the area of destruction */ | | tmp->range+=lvl/5; /* increase the area of destruction */ |
tmp->duration+=lvl/5; | | tmp->duration+=lvl/5; |
| | |
| | /* Put a cap on duration for this - if the player fails in their |
| | * apartment, don't want it to go on so long that it kills them |
| | * multiple times. Also, damge already increases with level, |
| | * so don't really need to increase the duration as much either. |
| | */ |
| | if (tmp->duration>=40) tmp->duration=40; |
tmp->stats.dam=lvl; /* nasty recoils! */ | | tmp->stats.dam=lvl; /* nasty recoils! */ |
tmp->stats.maxhp=tmp->count; /* tract single parent */ | | tmp->stats.maxhp=tmp->count; /* tract single parent */ |
insert_ob_in_map(tmp,op->map,op,0); | | insert_ob_in_map(tmp,op->map,op,0); |