version 1.39 | | version 1.40 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_util_c = | | * static char *rcsid_spell_util_c = |
* "$Id: spell_util.c,v 1.39 2000/12/16 02:44:58 peterm Exp $"; | | * "$Id: spell_util.c,v 1.40 2000/12/18 07:38:25 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
SET_ANIMATION(tmp, dir); | | SET_ANIMATION(tmp, dir); |
set_owner(tmp,op); | | set_owner(tmp,op); |
tmp->level = SK_level (caster); | | tmp->level = SK_level (caster); |
#if 0 | | |
if(op->type==PLAYER) | | |
tmp->stats.wc=5+(op->contr->shootstrength-5)/5, | | |
tmp->stats.exp=(op->contr->shootstrength-5)/3+12, | | |
tmp->stats.hp=8+(op->contr->shootstrength-5)/8; | | |
#endif | | |
tmp->x+=DIRX(tmp),tmp->y+=DIRY(tmp); | | tmp->x+=DIRX(tmp),tmp->y+=DIRY(tmp); |
if(wall(op->map,tmp->x,tmp->y)) { | | if(wall(op->map,tmp->x,tmp->y)) { |
if(!QUERY_FLAG(tmp, FLAG_REFLECTING)) { | | if(!QUERY_FLAG(tmp, FLAG_REFLECTING)) { |
| | |
tmp->attacktype|=AT_MAGIC; | | tmp->attacktype|=AT_MAGIC; |
if(QUERY_FLAG(tmp, FLAG_IS_TURNABLE)) | | if(QUERY_FLAG(tmp, FLAG_IS_TURNABLE)) |
SET_ANIMATION(tmp, dir); | | SET_ANIMATION(tmp, dir); |
#if 0 | | |
if(op->type==PLAYER) | | |
tmp->stats.hp=(op->contr->shootstrength-10)/10+10; | | |
#endif | | |
if ((tmp = insert_ob_in_map (tmp, op->map, op)) == NULL) | | if ((tmp = insert_ob_in_map (tmp, op->map, op)) == NULL) |
return 1; | | return 1; |
switch(type) { | | switch(type) { |