Пример #1
0
        public virtual bool Use(ItemData data)
        {
            GameConnection client = getControllingClient();

            if (client.isObject())
            {
                double defaultfov = client.getControlCameraDefaultFov();
                double fov        = client.getControlCameraFov();
                if (defaultfov != fov)
                {
                    return(false);
                }
            }
            if (getInventory(data) > 0)
            {
                return(data.onUse(_ID));
            }

            return(false);
        }