Esempio n. 1
0
 // Add Object to Class List
 public override void AddObject(JToken item, List <IRpgDBEntry> list, string category)
 {
     if (category == "character_classes")
     {
         CharacterClass characterClass = new CharacterClass();
         characterClass.ConvertObject(item);
         list.Add(characterClass);
     }
     if (category == "class_proficiencies")
     {
         Proficiency proficiency = new Proficiency();
         proficiency.ConvertObject(item);
         list.Add(proficiency);
     }
 }
Esempio n. 2
0
 public void AddProficiencyIdToClass(Proficiency data)
 {
     // Find class and modify it in place
     All.Find(x => x.id.Equals(data.class_id)).Proficiencies.Add(data.feat_id);
 }