public Region pickRegion()
        {
            Region region;

            if (character.race.raceEnum == RaceEnum.Dwarve && character.race.raceEnum == RaceEnum.Elve)
            {
                region = new Elderlands();

                if (character.race.raceEnum == RaceEnum.Dwarve)
                {
                    region.origin = region.origins[(int)Elderlands.OriginsEnum.Mahakam];
                }
                else
                {
                    region.origin = region.origins[(int)Elderlands.OriginsEnum.DolBlathanna];
                }
            }

            else
            {
                region        = (Region)pickFromArray(new IInfo[] { new Nilfgaard(), new NorthernKingdoms() });
                region.origin = (Region.Origin)pickFromArray(character.region.origins);
            }

            return(region);
        }
Пример #2
0
        private Region pickHomeland()
        {
            Region region;

            if (character.race.raceEnum == RaceEnum.Dwarve && character.race.raceEnum == RaceEnum.Elve)
            {
                region = new Elderlands();

                if (character.race.raceEnum == RaceEnum.Dwarve)
                {
                    region.origin = region.origins[(int)Elderlands.OriginsEnum.Mahakam];
                }
                else
                {
                    region.origin = region.origins[(int)Elderlands.OriginsEnum.DolBlathanna];
                }

                Console.WriteLine($"Выбран регион {region.name}, государство {region.origin.text()}");
                return(region);
            }

            bool random = decideRandom("Выбрать регион случайно y/n");

            region = random
                ? randomCharacterBuilder.pickRegion()
                : characterBuilder.pickRegion();
            Console.WriteLine($"Выбран регион {region.name}, государство {region.origin.text()}");
            return(region);
        }