Exemplo n.º 1
0
        public static bool UnderEAControl(Relationship ths)
        {
            SimDescription simA = ths.SimDescriptionA;
            SimDescription simB = ths.SimDescriptionB;

            if ((((simA != null) && (simB != null)) && (SimTypes.IsSelectable(simA) || SimTypes.IsSelectable(simB))) && (simA.IsHuman && simB.IsHuman))
            {
                if ((simA.Service is GrimReaper) || (simB.Service is GrimReaper))
                {
                    return(true);
                }
                else
                {
                    switch (ths.LTR.CurrentLTR)
                    {
                    case LongTermRelationshipTypes.Spouse:
                    case LongTermRelationshipTypes.Fiancee:
                        return(false);
                    }

                    if (simA.CanHaveRomanceWith(simB) && simA.CheckAutonomousGenderPreference(simB))
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }