Esempio n. 1
0
        public static bool OnRomanceTest(Sim actor, Sim target, ActiveTopic topic, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
        {
            try
            {
                if (!Woohooer.Settings.mInteractionsUnderRomance)
                {
                    return(false);
                }

                if ((actor != Sim.ActiveActor) && (target != Sim.ActiveActor))
                {
                    return(false);
                }

                if (!CommonSocials.OnDefaultTest(actor, target, topic, isAutonomous, ref greyedOutTooltipCallback))
                {
                    return(false);
                }

                return(true);
            }
            catch (Exception e)
            {
                Common.Exception(actor, target, e);
                return(false);
            }
        }