コード例 #1
0
 public static void AddDruid(Character character)
 {
     Druid.Base(character);
     Druid.Features(character);
     Druid.Equipment(character);
     character.Archetype = Druid.DruidCircle;
     if (character.Archetype == "Stars")
     {
         string focus = "";
         foreach (var item in character.Equipment)
         {
             if (character.Equipment.Contains("Druidic Focus"))
             {
                 focus = item;
             }
         }
         character.Equipment.Remove(focus);
         string msg      = "Pick a star map to be your new spell focus";
         var    starMaps = new List <string>();
         foreach (var item in Options.StarMaps)
         {
             starMaps.Add(item.Substring(8, item.Length - 1));
         }
         int index = CLIHelper.PrintChoices(msg, starMaps);
         character.Equipment.Add(Options.StarMaps[index]);
     }
 }