StatusValue.MaxReached C# (CSharp) Method

MaxReached() public method

public MaxReached ( ) : bool
return bool
    public bool MaxReached()
    {
        bool max = false;
        if(this.IsConsumable() &&
            this.currentValue >= this.owner.status[this.maxStatus].currentValue)
        {
            max = true;
        }
        else if(this.IsNormal() &&
            this.currentValue >= this.maxValue)
        {
            max = true;
        }
        return max;
    }