MCPcopy Create free account
hub / github.com/crawl/crawl / ability_range

Function ability_range

crawl-ref/source/ability.cc:805–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805int 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
822static int _makhleb_destruction_power()
823{

Callers 4

get_ability_descFunction · 0.85
find_ability_targeterFunction · 0.85
activate_talentFunction · 0.85

Calls 1

frog_hop_rangeFunction · 0.85

Tested by

no test coverage detected