ItemShort.RemoveFromInventory C# (CSharp) Method

RemoveFromInventory() public method

public RemoveFromInventory ( ) : void
return void
    public void RemoveFromInventory()
    {
        if(this.isMoney)
        {
            GameHandler.SubMoney(this.quantity);
        }
        else if(ItemDropType.ITEM.Equals(this.type))
        {
            GameHandler.RemoveItem(this.id, this.quantity);
        }
        else if(ItemDropType.WEAPON.Equals(this.type))
        {
            GameHandler.RemoveWeapon(this.id, this.quantity);
        }
        else if(ItemDropType.ARMOR.Equals(this.type))
        {
            GameHandler.RemoveArmor(this.id, this.quantity);
        }
    }