Adv cost
Function Syntax
- use_me is the skill to check the cost of
Returns the adventure cost for the next cast of the given skill use_me.
Code Samples
Asks user if they want to abort rather than expend adventures by casting a skill.
void adv_check(skill sk) {
if(adv_cost(sk) > 0 && user_confirm("This skill will cost " + adv_cost(sk) + " adventures if you cast it. \n Do you want to continue?"))
abort("Aborted by user because skill costs adventures to cast!");
}