Example #1
0
        public void RunAddBackground(Character character)
        {
            var backgroundObject = new Background();

            Console.WriteLine("Do you want Grim Hollow Advanced Backgrounds? Y/N");
            var yesNo = new List <string> {
                "y", "n"
            };
            string answer = CLIHelper.GetStringInList(yesNo);

            if (answer == "y")
            {
                character.ChosenBackground = Prompts.PickOption("background", Options.GHBackgrounds);
                Console.Clear();
                Console.WriteLine($"You've picked {character.ChosenBackground}.\n");
                var GHFillerObject = GHBackground.NewBackground(character);
                backgroundObject = AddBackground.AddGHBackground(GHFillerObject);
            }
            else if (answer == "n")
            {
                character.ChosenBackground = Prompts.PickOption("background", Options.Backgrounds);
                backgroundObject           = Background.NewBackground(character);
            }

            AddBackground.PersonalCharacteristics(character, backgroundObject);
            AddBackground.BackgroundSpecifics(character, backgroundObject);

            Console.Clear();
            Console.WriteLine("\nYou've finished adding your background!\n");
        }
Example #2
0
        public void RunGetLvl(Character character)
        {
            Console.WriteLine("Pick the level your want your character to be. Must be between 1 and 20.");
            int lvl = CLIHelper.GetNumberInRange(1, 20);

            character.Lvl = lvl;

            character.ProficiencyBonus = 2;
            if (lvl >= 5)
            {
                character.ProficiencyBonus++;
            }
            if (lvl >= 9)
            {
                character.ProficiencyBonus++;
            }
            if (lvl >= 13)
            {
                character.ProficiencyBonus++;
            }
            if (lvl >= 17)
            {
                character.ProficiencyBonus++;
            }

            BEHelper.SetXP(character);
            Console.Clear();
            character.ChosenRace = Prompts.PickOption("race", Options.Races);
            if (character.ChosenRace == "Demigod")
            {
                character.DemigodDomain = Prompts.GetDemigodDomain();
            }
            Console.Clear();
            Console.WriteLine($"You've picked {character.ChosenRace}.\n");
            character.ChosenClass = Prompts.PickOption("class", Options.Classes);
            Console.Clear();
            Console.WriteLine($"You've picked {character.ChosenClass}.\n");

            Console.WriteLine("Do you want to add a Template to your character? Y/N");
            string answer = Console.ReadLine().ToLower();

            if (answer == "y")
            {
                character.Template = true;
                string pickMsg = "Pick from the list of templates.";
                int    index   = CLIHelper.PrintChoices(pickMsg, Options.Templates);
                character.ChosenTemplate = Options.Templates[index];
                Console.Clear();
                Console.WriteLine($"You've picked {character.ChosenTemplate}.");
            }
        }