public SkillScore(Character character, Skill skill, uint ranks = 0, IEnumerable<string> foci = null) : base(ranks, null) { Skill = skill; AttributeScore = character.GetAttributeScore(skill.PrimaryAttribute); Foci = new HashSet<string>(foci ?? new string[] { }); }
public void TestFullName(string baseName, string specialization, string expectedName) { var skill = new Skill("test", baseName, specialization, Attributes.Prowess); Assert.That(skill.FullName, Is.EqualTo(expectedName)); }
public void TestKey(string baseKey, string specialization, string expectedKey) { var skill = new Skill(baseKey, "Test", specialization, Attributes.Prowess); Assert.That(skill.CompoundKey, Is.EqualTo(expectedKey)); }