Exemplo n.º 1
0
 public Book(string Name, string Desc, Ability _ability)
 {
     name = Name;
     desc = Desc;
     ability = _ability;
 }
Exemplo n.º 2
0
 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;
     }
 }