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)); }
public void Apply(ItemSpec target) { var expected = GetExpected(target.GetProperty((ItemSpecPropertyEnum)_property)); var newValue = GetNewValue(expected); target.SetProperty(new ItemSpecProperty(_property, newValue)); }