Esempio n. 1
0
        public void DeserializeReturnsCorrectResultForAbyssAccuracyRatingJewel1()
        {
            var expected = new ModifierDefinition(
                "AbyssAccuracyRatingJewel1",
                ModDomain.AbyssJewel,
                ModGenerationType.Suffix,
                new []
            {
                new ModifierSpawnWeight("abyss_jewel_melee", 0),
                new ModifierSpawnWeight("abyss_jewel_ranged", 0),
                new ModifierSpawnWeight("default", 0),
            },
                new []
            {
                new CraftableStat("accuracy_rating", 10, 30),
            });

            var definitions = DeserializeAll();

            var definition = definitions.GetModifierById("AbyssAccuracyRatingJewel1");

            definition.Should().BeEquivalentTo(expected);
        }
Esempio n. 2
0
        public void DeserializeReturnsCorrectResultForColdDamagePrefixOnTwoHandWeapon1()
        {
            var expected = new ModifierDefinition(
                "ColdDamagePrefixOnTwoHandWeapon1",
                ModDomain.Item,
                ModGenerationType.Prefix,
                new []
            {
                new ModifierSpawnWeight("no_elemental_damage_mods", 0),
                new ModifierSpawnWeight("no_caster_mods", 0),
                new ModifierSpawnWeight("staff", 250),
                new ModifierSpawnWeight("default", 0),
            },
                new []
            {
                new CraftableStat("cold_damage_+%", 15, 29),
            });

            var definitions = DeserializeAll();

            var definition = definitions.GetModifierById("ColdDamagePrefixOnTwoHandWeapon1");

            definition.Should().BeEquivalentTo(expected);
        }