| 803 | } |
| 804 | |
| 805 | int ability_range(ability_type abil) |
| 806 | { |
| 807 | int range = get_ability_def(abil).range; |
| 808 | |
| 809 | // Special-cased abilities with variable range. |
| 810 | switch (abil) |
| 811 | { |
| 812 | case ABIL_HOP: |
| 813 | range = frog_hop_range(); |
| 814 | break; |
| 815 | default: |
| 816 | break; |
| 817 | } |
| 818 | |
| 819 | return min((int)you.current_vision, range); |
| 820 | } |
| 821 | |
| 822 | static int _makhleb_destruction_power() |
| 823 | { |
no test coverage detected