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.92 by root, Sun Jan 11 06:08:40 2009 UTC vs.
Revision 1.93 by elmex, Tue Jan 13 13:29:57 2009 UTC

1467 1467
1468 break; 1468 break;
1469 } 1469 }
1470} 1470}
1471 1471
1472/**
1473 * This function will let a fireball explode at the position of
1474 * the victim with a specific maximum level.
1475 */
1476void
1477create_exploding_ball_at (object *victim, int level)
1478{
1479 object *ball = get_archetype (EXPLODING_FIREBALL);
1480 ball->dam_modifier = random_roll (1, level, victim, PREFER_LOW) / 5 + 1;
1481 ball->stats.maxhp = random_roll (1, level, victim, PREFER_LOW) / 10 + 2;
1482 ball->insert_at (victim);
1483}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines