version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.9 2000/04/17 14:18:13 jec Exp $"; | | * "$Id: spell_effect.c,v 1.10 2000/04/19 11:46:42 jec Exp $"; |
*/ | | */ |
| | |
| | |
| | |
return 1; | | return 1; |
} | | } |
| | |
int create_bomb(object *op,object *caster,int dir,char *name) { | | int create_bomb(object *op,object *caster,int dir,int spell_type,char *name) { |
object *tmp; | | object *tmp; |
int dx=op->x+freearr_x[dir],dy=op->y+freearr_y[dir]; | | int dx=op->x+freearr_x[dir],dy=op->y+freearr_y[dir]; |
if(wall(op->map,dx,dy)) { | | if(wall(op->map,dx,dy)) { |
| | |
tmp=get_archetype(name); | | tmp=get_archetype(name); |
| | |
/* level dependencies for bomb */ | | /* level dependencies for bomb */ |
tmp->stats.dam=SP_PARAMETERS[SP_BOMB].bdam + SP_level_dam_adjust(op,caster,SP_BOMB); | | tmp->stats.dam=SP_PARAMETERS[spell_type].bdam + SP_level_dam_adjust(op,caster,spell_type); |
tmp->stats.hp=SP_PARAMETERS[SP_BOMB].bdur + SP_level_strength_adjust(op,caster,SP_BOMB); | | tmp->stats.hp=SP_PARAMETERS[spell_type].bdur + SP_level_strength_adjust(op,caster,spell_type); |
| | tmp->level = casting_level (caster, spell_type); |
| | |
set_owner(tmp,op); | | set_owner(tmp,op); |
tmp->x=dx,tmp->y=dy; | | tmp->x=dx,tmp->y=dy; |