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.90 by root, Fri Nov 6 13:03:34 2009 UTC vs.
Revision 1.91 by root, Sat Nov 7 18:30:06 2009 UTC

1525 Ryo, august 14th 1525 Ryo, august 14th
1526 */ 1526 */
1527 if (head->level > level) 1527 if (head->level > level)
1528 continue; 1528 continue;
1529 1529
1530 if (random_roll (0, 100, caster, PREFER_LOW) >= (20 + MIN (50, 2 * (level - head->level)))) 1530 if (random_roll (0, 100, caster, PREFER_LOW) >= (20 + min (50, 2 * (level - head->level))))
1531 /* Failed, no effect */ 1531 /* Failed, no effect */
1532 continue; 1532 continue;
1533 } 1533 }
1534 1534
1535 /* Done with saving throw. Now start affecting the monster */ 1535 /* Done with saving throw. Now start affecting the monster */
2032 if (infect_object (walk, disease, 1)) 2032 if (infect_object (walk, disease, 1))
2033 { 2033 {
2034 new_draw_info_format (NDI_UNIQUE, 0, op, "You inflict %s on %s!", &disease->name, &walk->name); 2034 new_draw_info_format (NDI_UNIQUE, 0, op, "You inflict %s on %s!", &disease->name, &walk->name);
2035 2035
2036 disease->destroy (); /* don't need this one anymore */ 2036 disease->destroy (); /* don't need this one anymore */
2037 walk->map->insert (get_archetype ("detect_magic"), x, y, op); 2037 walk->map->insert (get_archetype (shstr_detect_magic), x, y, op);
2038 return 1; 2038 return 1;
2039 } 2039 }
2040 2040
2041 disease->destroy (); 2041 disease->destroy ();
2042 } 2042 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines