示例#1
0
        public void Apply(ItemSpec target)
        {
            var expected = GetExpected(target.GetProperty((ItemSpecPropertyEnum)_property));
            var newValue = (int)StaticRng.Random.RandomBell(_min, expected, _max);

            target.SetProperty(new ItemSpecProperty(_property, newValue));
        }
示例#2
0
        public void Apply(ItemSpec target)
        {
            var expected = GetExpected(target.GetProperty((ItemSpecPropertyEnum)_property));
            var newValue = GetNewValue(expected);

            target.SetProperty(new ItemSpecProperty(_property, newValue));
        }