Esempio n. 1
0
        private void updateMaterialRule(cLootItemRule r, int mat, int w)
        {
            LongValKeyLE   r1 = new LongValKeyLE(mat, IntValueKey.Material);
            LongValKeyGE   r2 = new LongValKeyGE(mat, IntValueKey.Material);
            DoubleValKeyGE r3 = new DoubleValKeyGE(Convert.ToDouble(w), DoubleValueKey.SalvageWorkmanship);

            r.IntRules = new List <iLootRule>(new iLootRule[] { r1, r2, r3 });
        }
Esempio n. 2
0
        private void updateMaterialRule(cLootItemRule r, int mat, int w)
        {
            LongValKeyLE r1 = new LongValKeyLE(mat, IntValueKey.Material);
            LongValKeyGE r2 = new LongValKeyGE(mat, IntValueKey.Material);
            DoubleValKeyGE r3 = new DoubleValKeyGE(Convert.ToDouble(w), DoubleValueKey.SalvageWorkmanship);

            r.IntRules = new List<iLootRule>(new iLootRule[] { r1, r2, r3 });
        }