… | |
… | |
148 | new_bolt->duration++; |
148 | new_bolt->duration++; |
149 | new_bolt->stats.dam /= 2; /* reduce daughter bolt damage */ |
149 | new_bolt->stats.dam /= 2; /* reduce daughter bolt damage */ |
150 | new_bolt->stats.dam++; |
150 | new_bolt->stats.dam++; |
151 | tmp->stats.dam /= 2; /* reduce father bolt damage */ |
151 | tmp->stats.dam /= 2; /* reduce father bolt damage */ |
152 | tmp->stats.dam++; |
152 | tmp->stats.dam++; |
|
|
153 | |
153 | if ((new_bolt = m->insert (new_bolt, sx, sy, op))) |
154 | if ((new_bolt = m->insert (new_bolt, sx, sy, op))) |
154 | update_turn_face (new_bolt); |
155 | update_turn_face (new_bolt); |
155 | } |
156 | } |
156 | |
157 | |
157 | /* move_bolt: moves bolt 'op'. Basically, it just advances a space, |
158 | /* move_bolt: moves bolt 'op'. Basically, it just advances a space, |
… | |
… | |
1610 | * about. was called move_ball_lightning, but since more than the ball |
1611 | * about. was called move_ball_lightning, but since more than the ball |
1611 | * lightning spell used it, that seemed misnamed. |
1612 | * lightning spell used it, that seemed misnamed. |
1612 | * op is the spell effect. |
1613 | * op is the spell effect. |
1613 | * note that duration is handled by process_object() in time.c |
1614 | * note that duration is handled by process_object() in time.c |
1614 | */ |
1615 | */ |
1615 | |
|
|
1616 | void |
1616 | void |
1617 | move_ball_spell (object *op) |
1617 | move_ball_spell (object *op) |
1618 | { |
1618 | { |
1619 | int i, j, dam_save, dir, mflags; |
1619 | int i, j, dam_save, dir, mflags; |
1620 | sint16 nx, ny, hx, hy; |
1620 | sint16 nx, ny, hx, hy; |