Exemplo n.º 1
0
        //break all relations of given relation
        public static void BreakAllGivenRelations(Pawn pawn, PawnRelationDef relation, bool testRelations = false)
        {
            if (!RelationshipUtility.IsRomanticOrSexualRelationship(relation))
            {
                return;
            }
            List <Pawn> allPawns = RelationshipUtility.GetAllPawnsWithGivenRelationshipTo(pawn, relation);

            for (int i = 0; i < allPawns.Count(); i++)
            {
                RelationToEx(pawn, allPawns[i], relation);
            }
        }