version 1.30 | | version 1.31 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_attack_c = | | * static char *rcsid_spell_attack_c = |
* "$Id: spell_attack.c,v 1.30 2005/12/10 14:27:10 akirschbaum Exp $"; | | * "$Id: spell_attack.c,v 1.31 2006/01/01 13:39:01 akirschbaum Exp $"; |
*/ | | */ |
| | |
| | |
| | |
new_bolt->speed_left = -0.1; | | new_bolt->speed_left = -0.1; |
new_bolt->direction = t_dir; | | new_bolt->direction = t_dir; |
new_bolt->duration++; | | new_bolt->duration++; |
new_bolt->x+=DIRX(new_bolt); | | new_bolt->x=sx; |
new_bolt->y+=DIRY(new_bolt); | | new_bolt->y=sy; |
new_bolt->stats.dam /= 2; /* reduce daughter bolt damage */ | | new_bolt->stats.dam /= 2; /* reduce daughter bolt damage */ |
new_bolt->stats.dam++; | | new_bolt->stats.dam++; |
tmp->stats.dam /= 2; /* reduce father bolt damage */ | | tmp->stats.dam /= 2; /* reduce father bolt damage */ |
tmp->stats.dam++; | | tmp->stats.dam++; |
new_bolt = insert_ob_in_map(new_bolt,op->map,op,0); | | new_bolt = insert_ob_in_map(new_bolt,m,op,0); |
update_turn_face(new_bolt); | | update_turn_face(new_bolt); |
} | | } |
} | | } |