public virtual void IntelligenceHappens()
        {
            var item = GenerateOrFail(GenerateItem, i => i.ItemType == itemType && i.Magic.Intelligence.Ego > 0);

            AssertItem(item);
            ItemVerifier.AssertIntelligence(item.Magic.Intelligence);
        }
        protected void AssertSpecificCursedItemsWithIntelligenceHappen()
        {
            var item = GenerateOrFail(GenerateItem, i => i.Magic.Curse == CurseConstants.SpecificCursedItem && i.Magic.Intelligence.Ego > 0);

            ItemVerifier.AssertSpecificCursedItem(item);
            ItemVerifier.AssertIntelligence(item.Magic.Intelligence);
        }
Ejemplo n.º 3
0
        public void IntelligentSpecificWeaponHappens()
        {
            var weapon = GenerateOrFail(GenerateItem, w => w.ItemType == itemType && w.Attributes.Contains(AttributeConstants.Specific) && w.Magic.Curse != CurseConstants.SpecificCursedItem && w.Magic.Intelligence.Ego > 0);

            AssertItem(weapon);
            Assert.That(weapon.Attributes, Contains.Item(AttributeConstants.Specific));
            Assert.That(weapon.Magic.Curse, Is.Not.EqualTo(CurseConstants.SpecificCursedItem));
            ItemVerifier.AssertIntelligence(weapon.Magic.Intelligence);
        }
Ejemplo n.º 4
0
        public void IntelligentSpecificArmorHappens()
        {
            var armor = GenerateOrFail(GenerateItem, a => a.ItemType == itemType && a.Attributes.Contains(AttributeConstants.Specific) && a.Magic.Curse != CurseConstants.SpecificCursedItem && a.Magic.Intelligence.Ego > 0);

            AssertItem(armor);
            Assert.That(armor.Attributes, Contains.Item(AttributeConstants.Specific));
            Assert.That(armor.Magic.Curse, Is.Not.EqualTo(CurseConstants.SpecificCursedItem));
            ItemVerifier.AssertIntelligence(armor.Magic.Intelligence);
        }