Example #1
0
        public void GetSimplifiedWithItemDamageOnly()
        {
            var attr = damageAttr.GetSimplified();

            Assert.AreNotSame(damageAttr, attr);

            Assert.AreEqual(new ItemValueRange(3, 30), attr.damageMin_Cold);
            Assert.AreEqual(new ItemValueRange(4, 40), attr.damageDelta_Cold);
            Assert.IsNull(attr.damageBonusMin_Cold);
            Assert.AreEqual(damageAttr.damageTypePercentBonus_Cold, attr.damageTypePercentBonus_Cold);

            Assert.AreEqual(new ItemValueRange(6, 60), attr.damageMin_Physical);
            Assert.AreEqual(new ItemValueRange(8, 80), attr.damageDelta_Physical);
            Assert.IsNull(attr.damageBonusMin_Physical);
        }
Example #2
0
        public void GetSimplifiedWithWeaponDamageOnly()
        {
            var attr = weaponAttr.GetSimplified();

            Assert.AreNotSame(weaponAttr, attr);

            Assert.AreEqual(new ItemValueRange(12, 120), attr.damageWeaponMin_Arcane);
            Assert.AreEqual(new ItemValueRange(6, 60), attr.damageWeaponDelta_Arcane);
            Assert.IsNull(attr.damageWeaponBonusMin_Arcane);
            Assert.IsNull(attr.damageWeaponBonusDelta_Arcane);
            Assert.IsNull(attr.damageWeaponBonusMinX1_Arcane);
            Assert.IsNull(attr.damageWeaponBonusFlat_Arcane);
            Assert.AreEqual(weaponAttr.damageTypePercentBonus_Arcane, attr.damageTypePercentBonus_Arcane);

            Assert.AreEqual(new ItemValueRange(24, 240), attr.damageWeaponMin_Physical);
            Assert.AreEqual(new ItemValueRange(12, 120), attr.damageWeaponDelta_Physical);
            Assert.IsNull(attr.damageWeaponBonusMin_Physical);
            Assert.IsNull(attr.damageWeaponBonusDelta_Physical);
            Assert.IsNull(attr.damageWeaponBonusMinX1_Physical);
            Assert.IsNull(attr.damageWeaponBonusFlat_Physical);
        }