Example #1
0
        public static bool PublicTest(Sim actor, Sim target, ActiveTopic topic, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
        {
            if (!SimWoohoo.CommonTest(actor, target, ref greyedOutTooltipCallback))
            {
                return(false);
            }

            ScoringLookup.IncStat("OnTest TryForBaby Try");

            return(CommonPregnancy.SatisfiesTryForBaby(actor, target, "OnTest TryForBaby", isAutonomous, false, ref greyedOutTooltipCallback));
        }
Example #2
0
        public new Phone.Call.AcceptanceTestResult CustomAcceptanceTest(SimDescription simDescription)
        {
            if (!RentScheduler.IsAllowedOnLotNow(simDescription, base.Actor.LotCurrent) && !RentScheduler.InviteToLotNow(base.Actor, simDescription, base.Actor.LotCurrent))
            {
                return(Phone.Call.AcceptanceTestResult.ForceReject);
            }

            Sim createdSim = simDescription.CreatedSim;

            if ((createdSim != null) && (GroupingSituation.ShouldSoftReject(base.Actor, createdSim) || GroupingSituation.ShouldHardReject(base.Actor, createdSim)))
            {
                return(Phone.Call.AcceptanceTestResult.ForceReject);
            }

            GreyedOutTooltipCallback greyedOutTooltipCallback = null;
            ActiveTopic topic = null;

            if (!SimWoohoo.PublicTest(base.Actor, createdSim, topic, base.Autonomous, ref greyedOutTooltipCallback))
            {
                return(Phone.Call.AcceptanceTestResult.ForceReject);
            }

            return(Phone.Call.AcceptanceTestResult.DontCare);
        }