ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/spell_attack.C
(Generate patch)

Comparing deliantra/server/server/spell_attack.C (file contents):
Revision 1.59 by root, Sat May 17 15:25:19 2008 UTC vs.
Revision 1.60 by root, Sun May 18 17:52:53 2008 UTC

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
1616void 1616void
1617move_ball_spell (object *op) 1617move_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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines