diff --git a/Assemblies/AlienRace.dll b/Assemblies/AlienRace.dll index 424f1190..17d1bd6a 100644 Binary files a/Assemblies/AlienRace.dll and b/Assemblies/AlienRace.dll differ diff --git a/Source/AlienRace/AlienRace/HarmonyPatches.cs b/Source/AlienRace/AlienRace/HarmonyPatches.cs index 4c114f4f..c159bec2 100644 --- a/Source/AlienRace/AlienRace/HarmonyPatches.cs +++ b/Source/AlienRace/AlienRace/HarmonyPatches.cs @@ -1844,7 +1844,7 @@ public static bool FillBackstoryInSlotShuffledPrefix(Pawn pawn, BackstorySlot sl private static PawnBioDef bioReference; // ReSharper disable once RedundantAssignment - public static void TryGetRandomUnusedSolidBioForPostfix(string backstoryCategory, ref PawnBio __result, PawnKindDef kind, Gender gender, string requiredLastName) + public static void TryGetRandomUnusedSolidBioForPostfix(List backstoryCategories, ref PawnBio __result, PawnKindDef kind, Gender gender, string requiredLastName) { if (SolidBioDatabase.allBios.Where(predicate: pb => (((kind.race as ThingDef_AlienRace)?.alienRace.generalSettings.allowHumanBios ?? true) && (kind.GetModExtension()?.allowHumanBios ?? true) || @@ -1852,7 +1852,7 @@ public static void TryGetRandomUnusedSolidBioForPostfix(string backstoryCategory (pb.gender == GenderPossibility.Either || pb.gender == GenderPossibility.Male && gender == Gender.Male) && (requiredLastName.NullOrEmpty() || pb.name.Last == requiredLastName) && (!kind.factionLeader || pb.pirateKing) && - pb.adulthood.spawnCategories.Contains(item: backstoryCategory) && + pb.adulthood.spawnCategories.Any(predicate: backstoryCategories.Contains) && !pb.name.UsedThisGame).TryRandomElement(result: out PawnBio bio)) { __result = bio;