Пример #1
0
        private void DisplayCulture(Culture culture)
        {
            CultureWeaponSet rawWepSet = _charRepo.GetWeaponSetByName(culture);

            string wepSetOne = CultureWeaponSetLister(rawWepSet.WeaponSetOne);
            string wepSetTwo = CultureWeaponSetLister(rawWepSet.WeaponSetTwo);
            string name      = culture.Name.Remove(2).ToLower();

            Console.WriteLine($"{culture.Name} selected.Please review the stats for the {culture.Name}:\n" +
                              "\n" +
                              "Common Skills:" +
                              "--------------------------------------------\n" +
                              $"|Awe           { culture.AweCommonSkill}   |Inspire         {culture.InspireCommonSkill}   |Persuade     {culture.PersuadeCommonSkill}  |\n" +
                              $"|Athletics     { culture.AthleticsCommonSkill}   |Travel          {culture.TravelCommonSkill}   |Stealth         |\n" +
                              $"|Awareness     { culture.AwarenessCommonSkill}   |Insight         {culture.InsightCommonSkill}   |Search       {culture.SearchCommonSkill}  |\n" +
                              $"|Explore       { culture.ExploreCommonSkill }   |Healing             |Hunting         |\n" +
                              $"|Song          { culture.SongCommonSkill }   |Courtesy        {culture.CourtesyCommonSkill}   |Riddle          |\n" +
                              $"|Craft         { culture.CraftCommonSkill }   |Battle          {culture.BattleCommonSkill}   |Lore         {culture.LoreCommonSkill}  |\n" +
                              "----------------------------------------------------------\n" +
                              $">Standard of Living: {culture.LivingStandard}\n" +
                              $"\n>Cultural Blessing: {culture.CulturalBlessing}\n" +
                              "\n>Weapon Skill options:\n" +
                              $"1) {wepSetOne}\n" +
                              $"2) {wepSetTwo}\n" +
                              "\n" +
                              "Please select an option:\n" +
                              "1. View Backgrounds\n" +
                              $"2. Select the {culture.Name} culture for your character\n" +
                              "3. Back to Culture menu\n");
            string ansCult = Console.ReadLine();

            switch (ansCult)
            {
            case "1":
                Console.Clear();
                DisplayBackgrounds(name);
                Console.ReadLine();
                break;

            case "2":
                break;

            case "3":
                break;
            }
        }
Пример #2
0
        // Seed Weapon Sets:
        private void SeedWeaponSets()
        {
            CultureWeaponSet barding = new CultureWeaponSet()
            {
                Name         = "Barding",
                WeaponSetOne = new Dictionary <string, int>()
                {
                    { "(Swords)", 2 },
                    { "Spear", 1 },
                    { "Dagger", 1 }
                },
                WeaponSetTwo = new Dictionary <string, int>()
                {
                    { "Great Bow", 2 },
                    { "Spear", 1 },
                    { "Dagger", 1 }
                }
            };

            _charRepo.CreateWeaponSet(barding);

            CultureWeaponSet dwarf = new CultureWeaponSet()
            {
                Name         = "Dwarf",
                WeaponSetOne = new Dictionary <string, int>()
                {
                    { "(Axes)", 2 },
                    { "Short Sword", 1 },
                    { "Dagger", 1 }
                },
                WeaponSetTwo = new Dictionary <string, int>()
                {
                    { "Mattock", 2 },
                    { "Short Sword", 1 },
                    { "Dagger", 1 }
                }
            };

            _charRepo.CreateWeaponSet(dwarf);
        }