예제 #1
0
파일: Library.cs 프로젝트: sapeornis/Realm2
 public Book(string Name, string Desc, Ability _ability)
 {
     name = Name;
     desc = Desc;
     ability = _ability;
 }
예제 #2
0
파일: Player.cs 프로젝트: sapeornis/Realm2
 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;
     }
 }