Пример #1
0
        public void LearnedSkill()
        {
            var player = TestHelper.GetPlayer();

            player.SelectedCharacter.LearnedSkills.Add(this.CreateSkillEntry(LearnedSkillId));
            var skillList = new SkillList(player);

            Assert.That(skillList.ContainsSkill(LearnedSkillId), Is.True);
        }
Пример #2
0
        public void ItemSkill()
        {
            var player = TestHelper.GetPlayer();
            var item   = this.CreateItemWithSkill();

            item.Durability = 1;
            player.Inventory.AddItem(0, item);
            var skillList = new SkillList(player);

            Assert.That(skillList.ContainsSkill(ItemSkillId), Is.True);
        }
Пример #3
0
        public void ItemSkillRemoved()
        {
            var player = TestHelper.GetPlayer();
            var item   = this.CreateItemWithSkill();

            item.Durability = 1;
            player.Inventory.AddItem(0, item);
            var skillList = new SkillList(player);

            Assert.That(skillList.RemoveItemSkill(item.Definition.Skill.SkillID.ToUnsigned()), Is.True);
            Assert.That(skillList.ContainsSkill(ItemSkillId), Is.False);
        }