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.29 by root, Mon Jan 29 16:11:48 2007 UTC vs.
Revision 1.30 by pippijn, Thu Mar 1 12:28:16 2007 UTC

163 */ 163 */
164 164
165void 165void
166move_bolt (object *op) 166move_bolt (object *op)
167{ 167{
168 object *tmp;
169 int mflags; 168 int mflags;
170 sint16 x, y; 169 sint16 x, y;
171 maptile *m; 170 maptile *m;
172 171
173 if (--op->duration < 0) 172 if (--op->duration < 0)
1723 * if this has an other_arch field, we insert that in 1722 * if this has an other_arch field, we insert that in
1724 * the surround spaces. 1723 * the surround spaces.
1725 */ 1724 */
1726 for (j = 0; j < 9; j++) 1725 for (j = 0; j < 9; j++)
1727 { 1726 {
1728 object *new_ob;
1729
1730 hx = nx + freearr_x[j]; 1727 hx = nx + freearr_x[j];
1731 hy = ny + freearr_y[j]; 1728 hy = ny + freearr_y[j];
1732 1729
1733 m = op->map; 1730 m = op->map;
1734 mflags = get_map_flags (m, &m, hx, hy, &hx, &hy); 1731 mflags = get_map_flags (m, &m, hx, hy, &hx, &hy);
2110 if (disease->stats.sp) 2107 if (disease->stats.sp)
2111 disease->stats.sp -= dam_mod; 2108 disease->stats.sp -= dam_mod;
2112 2109
2113 if (infect_object (walk, disease, 1)) 2110 if (infect_object (walk, disease, 1))
2114 { 2111 {
2115 object *flash; /* visual effect for inflicting disease */
2116
2117 new_draw_info_format (NDI_UNIQUE, 0, op, "You inflict %s on %s!", &disease->name, &walk->name); 2112 new_draw_info_format (NDI_UNIQUE, 0, op, "You inflict %s on %s!", &disease->name, &walk->name);
2118 2113
2119 disease->destroy (); /* don't need this one anymore */ 2114 disease->destroy (); /* don't need this one anymore */
2120 walk->map->insert (get_archetype (ARCH_DETECT_MAGIC), x, y, op); 2115 walk->map->insert (get_archetype (ARCH_DETECT_MAGIC), x, y, op);
2121 return 1; 2116 return 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines