* 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. */
| 4810 | * @return The skill that governs the ability, or SK_NONE. |
| 4811 | */ |
| 4812 | skill_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 |
no test coverage detected