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.43 by root, Thu Jul 5 08:10:30 2007 UTC vs.
Revision 1.46 by root, Wed Aug 1 00:52:38 2007 UTC

343 * BULLET/BALL CODE 343 * BULLET/BALL CODE
344 * 344 *
345 ***************************************************************************/ 345 ***************************************************************************/
346 346
347/* expands an explosion. op is a piece of the 347/* expands an explosion. op is a piece of the
348 * explosion - this expans it in the different directions. 348 * explosion - this expands it in the different directions.
349 * At least that is what I think this does. 349 * At least that is what I think this does.
350 */ 350 */
351void 351void
352explosion (object *op) 352explosion (object *op)
353{ 353{
483 483
484 /* Prevent recursion */ 484 /* Prevent recursion */
485 op->move_on = 0; 485 op->move_on = 0;
486 486
487 tmp->insert_at (op, op); 487 tmp->insert_at (op, op);
488 tmp->play_sound (tmp->sound);
489
488 /* remove the firebullet */ 490 /* remove the firebullet */
489 op->destroy (); 491 op->destroy ();
490} 492}
491 493
492/* checks to see what op should do, given the space it is on 494/* checks to see what op should do, given the space it is on
1085 * op = player 1087 * op = player
1086 * caster = object casting the spell. 1088 * caster = object casting the spell.
1087 * dir = direction being cast 1089 * dir = direction being cast
1088 * spell = spell object 1090 * spell = spell object
1089 */ 1091 */
1090
1091int 1092int
1092cast_smite_spell (object *op, object *caster, int dir, object *spell) 1093cast_smite_spell (object *op, object *caster, int dir, object *spell)
1093{ 1094{
1094 object *effect, *target; 1095 object *effect, *target;
1095 object *god = find_god (determine_god (op)); 1096 object *god = find_god (determine_god (op));
1172 /* ok, tell it where to be, and insert! */ 1173 /* ok, tell it where to be, and insert! */
1173 effect->insert_at (target, op); 1174 effect->insert_at (target, op);
1174 1175
1175 return 1; 1176 return 1;
1176} 1177}
1177
1178 1178
1179/**************************************************************************** 1179/****************************************************************************
1180 * 1180 *
1181 * MAGIC MISSILE code. 1181 * MAGIC MISSILE code.
1182 * note that the fire_bullet is used to fire the missile. The 1182 * note that the fire_bullet is used to fire the missile. The

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines