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

Function abil_skill

crawl-ref/source/ability.cc:4812–4816  ·  view source on GitHub ↗

* What skill affects the success chance/power of a given skill, if any? * * @param ability The ability in question. * @return The skill that governs the ability, or SK_NONE. */

Source from the content-addressed store, hash-verified

4810 * @return The skill that governs the ability, or SK_NONE.
4811 */
4812skill_type abil_skill(ability_type ability)
4813{
4814 ASSERT(ability != ABIL_NON_ABILITY);
4815 return get_ability_def(ability).failure.skill();
4816}
4817
4818/**
4819 * How valuable is it to train the skill that governs this ability? (What

Callers 4

_check_abil_skillsFunction · 0.85
practise_using_abilityFunction · 0.85
excommunicationFunction · 0.85
join_religionFunction · 0.85

Calls 1

skillMethod · 0.45

Tested by

no test coverage detected