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.40 by root, Thu Jun 7 18:58:30 2007 UTC vs.
Revision 1.41 by root, Sat Jun 9 21:16:12 2007 UTC

337 move_bolt (tmp); 337 move_bolt (tmp);
338 338
339 return 1; 339 return 1;
340} 340}
341 341
342
343
344/*************************************************************************** 342/***************************************************************************
345 * 343 *
346 * BULLET/BALL CODE 344 * BULLET/BALL CODE
347 * 345 *
348 ***************************************************************************/ 346 ***************************************************************************/
389 m->insert (tmp, dx, dy, op); 387 m->insert (tmp, dx, dy, op);
390 } 388 }
391 } 389 }
392 } 390 }
393} 391}
394
395 392
396/* Causes an object to explode, eg, a firebullet, 393/* Causes an object to explode, eg, a firebullet,
397 * poison cloud ball, etc. op is the object to 394 * poison cloud ball, etc. op is the object to
398 * explode. 395 * explode.
399 */ 396 */
612 * we remove the magic flag - that can be derived from 609 * we remove the magic flag - that can be derived from
613 * spob->attacktype. 610 * spob->attacktype.
614 * This function sets up the appropriate owner and skill 611 * This function sets up the appropriate owner and skill
615 * pointers. 612 * pointers.
616 */ 613 */
617
618int 614int
619fire_bullet (object *op, object *caster, int dir, object *spob) 615fire_bullet (object *op, object *caster, int dir, object *spob)
620{ 616{
621 object *tmp = NULL; 617 object *tmp = NULL;
622 int mflags; 618 int mflags;
934 * 930 *
935 * BOMB related code 931 * BOMB related code
936 * 932 *
937 ****************************************************************************/ 933 ****************************************************************************/
938 934
939
940/* This handles an exploding bomb. 935/* This handles an exploding bomb.
941 * op is the original bomb object. 936 * op is the original bomb object.
942 */ 937 */
943void 938void
944animate_bomb (object *op) 939animate_bomb (object *op)
1047 * dir is the direction to look in. 1042 * dir is the direction to look in.
1048 * range is how far out to look. 1043 * range is how far out to look.
1049 * type is the type of spell - either SPELL_MANA or SPELL_GRACE. 1044 * type is the type of spell - either SPELL_MANA or SPELL_GRACE.
1050 * this info is used for blocked magic/unholy spaces. 1045 * this info is used for blocked magic/unholy spaces.
1051 */ 1046 */
1052
1053object * 1047object *
1054get_pointed_target (object *op, int dir, int range, int type) 1048get_pointed_target (object *op, int dir, int range, int type)
1055{ 1049{
1056 object *target; 1050 object *target;
1057 sint16 x, y; 1051 sint16 x, y;
1076 return NULL; 1070 return NULL;
1077 if (GET_MAP_MOVE_BLOCK (mp, x, y) & MOVE_FLY_LOW) 1071 if (GET_MAP_MOVE_BLOCK (mp, x, y) & MOVE_FLY_LOW)
1078 return NULL; 1072 return NULL;
1079 1073
1080 if (mflags & P_IS_ALIVE) 1074 if (mflags & P_IS_ALIVE)
1081 {
1082 for (target = GET_MAP_OB (mp, x, y); target; target = target->above) 1075 for (target = GET_MAP_OB (mp, x, y); target; target = target->above)
1083 { 1076 if (QUERY_FLAG (target, FLAG_MONSTER))
1084 if (QUERY_FLAG (target->head ? target->head : target, FLAG_MONSTER))
1085 {
1086 return target; 1077 return target;
1087 }
1088 }
1089 }
1090 } 1078 }
1079
1091 return NULL; 1080 return NULL;
1092} 1081}
1093
1094 1082
1095/* cast_smite_arch() - the priest points to a creature and causes 1083/* cast_smite_arch() - the priest points to a creature and causes
1096 * a 'godly curse' to decend. 1084 * a 'godly curse' to decend.
1097 * usual params - 1085 * usual params -
1098 * op = player 1086 * op = player

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines