Esempio n. 1
0
        protected override bool TestAffair(SimDescription sim, SimDescription target)
        {
            if (!Filter.AllowAffair)
            {
                return(false);
            }

            if (!TargetFilter.AllowAffair)
            {
                return(false);
            }

            Managers.Manager.AllowCheck check = Managers.Manager.AllowCheck.None;

            if (!Romances.AllowAdultery(this, sim, check))
            {
                return(false);
            }

            if (target.Partner != null)
            {
                if (!Romances.AllowLiaison(this, sim, check))
                {
                    return(false);
                }
            }

            if (!Romances.AllowAdultery(this, target, check))
            {
                return(false);
            }

            if (sim.Partner != null)
            {
                if (!Romances.AllowLiaison(this, target, check))
                {
                    return(false);
                }
            }

            return(true);
        }