… | |
… | |
163 | */ |
163 | */ |
164 | |
164 | |
165 | void |
165 | void |
166 | move_bolt (object *op) |
166 | move_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; |