public Book(string Name, string Desc, Ability _ability) { name = Name; desc = Desc; ability = _ability; }
public bool LearnAbility(Ability a) { //if the Player doesn't already know that ability, learn it if (!combatAbilities.Contains(a)) { combatAbilities.Add(a); Program.main.write("You learned " + a.name + "!", "Aqua"); return true; } else { Program.main.write("You have already learned that ability.", "Red"); return false; } }