Esempio n. 1
0
        public string relicDescription(ItemStack stack)
        {
            FantasyName[] names      = fantasyNameGenerator.GetFantasyNames(1);
            string        dragonName = names[0].FirstName + " " + names[0].LastName + " " + names[0].Postfix;

            return("Aided a hero in slaying the dragon " + dragonName);
        }
Esempio n. 2
0
        public string relicDescription(ItemStack stack)
        {
            FantasyName[] names    = fantasyNameGenerator.GetFantasyNames(1);
            string        tombName = names[0].FirstName + " " + names[0].Postfix;

            return("Aided in exploring " + tombName + " 's tomb");
        }
Esempio n. 3
0
        public Character(string characterName, int difficulty)
        {
            try
            {
                var fantasyNameSettings = new FantasyNameSettings(Classes.Warrior, Race.None, true, true, Gender.Male);
                IFantasyNameGenerator fantasyNameGenerator = FantasyNameGenerator.FromSettingsInfo(fantasyNameSettings);
                FantasyName[]         names = fantasyNameGenerator.GetFantasyNames(1);
                CharacterName = characterName == null || characterName == "" ? names[0].FullName : characterName;
            }
            catch
            {
                CharacterName = characterName == null || characterName == "" ? "Grim Stekspade" : characterName;
            }

            _difficulty = difficulty / 3.0;
            Strength    = rnd.Next(10, 18);
            Agility     = rnd.Next(10, 18);
            MaxHealth   = Convert.ToInt32(100 * _difficulty);
            Health      = MaxHealth;
            SetDamage();
            SetHitChance();
            SetCritChance();
            SetBlock();
            SetSpeed();
        }
Esempio n. 4
0
        public Character(string characterName)
        {
            try
            {
                var fantasyNameSettings = new FantasyNameSettings(Classes.Warrior, Race.None, true, true, Gender.Male);
                IFantasyNameGenerator fantasyNameGenerator = FantasyNameGenerator.FromSettingsInfo(fantasyNameSettings);
                FantasyName[]         names = fantasyNameGenerator.GetFantasyNames(1);
                CharacterName = characterName == null || characterName == "" ? names[0].FullName : characterName;
            }
            catch
            {
                CharacterName = characterName == null || characterName == "" ? "Crash Bandicoot" : characterName;
            }


            Strength  = rnd.Next(10, 18);
            Agility   = rnd.Next(10, 18);
            MaxHealth = 100;
            Health    = MaxHealth;
            SetDamage();
            SetHitChance();
            SetCritChance();
            SetBlock();
            SetSpeed();
        }
        public void Female_Goblin_Warrior()
        {
            // arrange
            NameGenerator.GetRandomNumber = (maxValue) => 1;
            IFantasyNameGenerator fantasyNameGenerator = FantasyNameGenerator.FromSettingsInfo(new FantasyNameSettings(Classes.Warrior, Race.Goblin, true, true, Gender.Female));

            // act
            var names = fantasyNameGenerator.GetFantasyNames(2);

            // assert
            ApprovalTests.Approvals.VerifyAll("Female Goblin Names", names, "names");
        }