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

Comparing deliantra/server/server/spell_util.C (file contents):
Revision 1.93 by elmex, Tue Jan 13 13:29:57 2009 UTC vs.
Revision 1.94 by root, Tue Feb 17 03:53:31 2009 UTC

421 * limits one spell effect per space per spell. This is definately 421 * limits one spell effect per space per spell. This is definately
422 * needed for performance reasons, and just for playability I believe. 422 * needed for performance reasons, and just for playability I believe.
423 * there are no such things as multispaced spells right now, so 423 * there are no such things as multispaced spells right now, so
424 * we don't need to worry about the head. 424 * we don't need to worry about the head.
425 */ 425 */
426 if ((tmp->stats.maxhp == op->stats.maxhp) && (tmp->type == op->type) && (tmp->subtype == op->subtype)) 426 if (tmp->stats.maxhp == op->stats.maxhp
427 && tmp->type == op->type
428 && tmp->subtype == op->subtype)
427 return 0; 429 return 0;
428 430
429 /* 431 /*
430 * Combine similar spell effects into one spell effect. Needed for 432 * Combine similar spell effects into one spell effect. Needed for
431 * performance reasons with meteor swarm and the like, but also for 433 * performance reasons with meteor swarm and the like, but also for
1138 return RESULT_INT (0); 1140 return RESULT_INT (0);
1139 1141
1140 switch (spell_ob->subtype) 1142 switch (spell_ob->subtype)
1141 { 1143 {
1142 /* The order of case statements is same as the order they show up 1144 /* The order of case statements is same as the order they show up
1143 * in in spells.h. 1145 * in spells.h.
1144 */ 1146 */
1145 case SP_RAISE_DEAD: 1147 case SP_RAISE_DEAD:
1146 success = cast_raise_dead_spell (op, caster, spell_ob, dir, stringarg); 1148 success = cast_raise_dead_spell (op, caster, spell_ob, dir, stringarg);
1147 break; 1149 break;
1148 1150

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines