Example #1
0
    public override int CalculateModifier(int value)
    {
        var attributeValue = AttributeHandler.Value(AttributeName);

        if ((Above == null || attributeValue > Above) &&
            (Below == null || attributeValue < Below))
        {
            return(value + Value);
        }
        return(Value);
    }