public bool HaveRelationship() { Relationship relationship = Actor.GetRelationship(Target, false); if (relationship != null && relationship.AreEnemies()) { return(false); } // <WISHLIST> May checks for good Samaritan Sims </WISHLIST> if (relationship == null || !relationship.AreFriends()) { return(false); } if (relationship.MarriedInGame) { return(true); } else if (Target.Genealogy.IsParentOrStepParent(Actor.Genealogy)) { return(true); } else if (Actor.IsBloodRelated(Target)) { return(true); } else if (relationship.AreRoommates()) { return(true); } return(true); }
protected bool Matches(Relationship relation) { if (relation != null) { if ((Value & AlertLevel.Friends) == AlertLevel.Friends) { if (relation.AreFriends()) { return(true); } } if ((Value & AlertLevel.Enemies) == AlertLevel.Enemies) { if (relation.AreEnemies()) { return(true); } } if ((Value & AlertLevel.Romantic) == AlertLevel.Romantic) { if (relation.AreRomantic()) { return(true); } } } return(false); }