… | |
… | |
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 | } |