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.35 by root, Thu May 17 20:27:02 2007 UTC vs.
Revision 1.36 by root, Fri May 18 13:15:29 2007 UTC

1574 at -= level / 5; 1574 at -= level / 5;
1575 if (did_make_save (head, head->level, at)) 1575 if (did_make_save (head, head->level, at))
1576 continue; 1576 continue;
1577 } 1577 }
1578 else /* spell->attacktype */ 1578 else /* spell->attacktype */
1579 /*
1580 Spell has no attacktype (charm & such), so we'll have a specific saving:
1581 * if spell level < monster level, no go
1582 * else, chance of effect = 20 + min( 50, 2 * ( spell level - monster level ) )
1583
1584 The chance will then be in the range [20-70] percent, not too bad.
1585
1586 This is required to fix the 'charm monster' abuse, where a player level 1 can
1587 charm a level 125 monster...
1588
1589 Ryo, august 14th
1590 */
1591 { 1579 {
1580 /*
1581 Spell has no attacktype (charm & such), so we'll have a specific saving:
1582 * if spell level < monster level, no go
1583 * else, chance of effect = 20 + min( 50, 2 * ( spell level - monster level ) )
1584
1585 The chance will then be in the range [20-70] percent, not too bad.
1586
1587 This is required to fix the 'charm monster' abuse, where a player level 1 can
1588 charm a level 125 monster...
1589
1590 Ryo, august 14th
1591 */
1592 if (head->level > level) 1592 if (head->level > level)
1593 continue; 1593 continue;
1594
1594 if (random_roll (0, 100, caster, PREFER_LOW) >= (20 + MIN (50, 2 * (level - head->level)))) 1595 if (random_roll (0, 100, caster, PREFER_LOW) >= (20 + MIN (50, 2 * (level - head->level))))
1595 /* Failed, no effect */ 1596 /* Failed, no effect */
1596 continue; 1597 continue;
1597 } 1598 }
1598 1599

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines