Exemplo n.º 1
0
        public static bool PublicTest(IActor a, GameObject target, GameObjectHit hit, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
        {
            if (!IsVisible(target))
            {
                return(false);
            }

            if (!(target is Sim))
            {
                Lot lot = OptionItem.GetLot(target, hit);
                if (lot != null)
                {
                    if (!lot.IsResidentialLot)
                    {
                        if (lot.LastDisplayedLevel < 0)
                        {
                            return(false);
                        }
                    }
                }
            }

            return(true);
        }