예제 #1
0
        public static bool ProposalTest(HotairBalloon ths, Sim a, Sim b, bool autonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
        {
            if ((ths.mCurrentHeight == HotairBalloon.BalloonHeight.OnGround) || (ths.mTargetHeight == HotairBalloon.BalloonHeight.OnGround))
            {
                return(false);
            }

            if (a == b)
            {
                return(false);
            }

            greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(HotairBalloon.LocalizeString(a.IsFemale, "ProposalTooltip", new object[0x0]));
            if ((a.SimDescription.IsGhost && !a.SimDescription.IsPlayableGhost) || (b.SimDescription.IsGhost && !b.SimDescription.IsPlayableGhost))
            {
                return(false);
            }

            // Custom
            return(CommonSocials.TestProposeMarriage(a, b, null, autonomous, ref greyedOutTooltipCallback));
        }