Beispiel #1
0
        public void SkillsCanHaveConditionalModifiers()
        {
            var skill     = new Skill("Eat", AbilityScoreTypes.Intelligence, false);
            var ability   = new AbilityScore(AbilityScoreTypes.Intelligence, 10);
            var charSkill = new CharacterSkill(skill, ability, false);
            var adj       = new ConditionalStatModifier("Celery", "Eat", 3, "bonus", "High in Fiber");

            charSkill.AddModifier(adj);
            Assert.AreEqual(1, charSkill.ConditionalModifiers.Count());
            Assert.AreEqual(3, charSkill.GetConditionalScore("Celery"));
            Assert.AreEqual(0, charSkill.Score());
            Assert.AreEqual("Eat +0 (+3 Celery)", charSkill.ToString());
        }