diff --git a/RJWSexperience/IdeologyAddon/Ideology/IdeoUtility.cs b/RJWSexperience/IdeologyAddon/Ideology/IdeoUtility.cs index fe92ed1..1ad9001 100644 --- a/RJWSexperience/IdeologyAddon/Ideology/IdeoUtility.cs +++ b/RJWSexperience/IdeologyAddon/Ideology/IdeoUtility.cs @@ -1,12 +1,8 @@ using RimWorld; -using rjw; -using System; -using System.Collections.Generic; using Verse; namespace RJWSexperience.Ideology { - [StaticConstructorOnStartup] public static class IdeoUtility { public static bool IsSubmissive(this Pawn pawn) @@ -37,20 +33,6 @@ namespace RJWSexperience.Ideology return true; } - public static bool IsIncest(Pawn pawn, Pawn partner) - { - IEnumerable relations = pawn.GetRelations(partner); - if (relations.EnumerableNullOrEmpty()) - return false; - - foreach (PawnRelationDef relation in relations) - { - if (relation.familyByBloodRelation) - return true; - } - return false; - } - public static float GetPreceptsMtbMultiplier(Ideo ideo) where T : Precepts.DefExtension_ModifyMtb { float finalMultiplier = 1f; diff --git a/RJWSexperience/IdeologyAddon/Ideology/Patches/Rimworld_Patch.cs b/RJWSexperience/IdeologyAddon/Ideology/Patches/Rimworld_Patch.cs index b3741c8..81666d3 100644 --- a/RJWSexperience/IdeologyAddon/Ideology/Patches/Rimworld_Patch.cs +++ b/RJWSexperience/IdeologyAddon/Ideology/Patches/Rimworld_Patch.cs @@ -17,19 +17,6 @@ namespace RJWSexperience.Ideology.Patches } } - [HarmonyPatch(typeof(Pawn_RelationsTracker), "SecondaryRomanceChanceFactor")] - public static class Rimworld_Patch_SecondaryRomanceChanceFactor - { - public static void Postfix(Pawn otherPawn, Pawn ___pawn, ref float __result) - { - Ideo ideo = ___pawn.Ideo; - if (ideo?.HasPrecept(VariousDefOf.Incestuos_IncestOnly) == true && IdeoUtility.IsIncest(___pawn, otherPawn)) - { - __result *= 8f; - } - } - } - [HarmonyPatch(typeof(RitualOutcomeEffectWorker_FromQuality), "GiveMemoryToPawn")] public static class Rimworld_Patch_GiveMemoryToPawn { diff --git a/RJWSexperience/IdeologyAddon/VariousDefOf.cs b/RJWSexperience/IdeologyAddon/VariousDefOf.cs index 1b3c138..e94e176 100644 --- a/RJWSexperience/IdeologyAddon/VariousDefOf.cs +++ b/RJWSexperience/IdeologyAddon/VariousDefOf.cs @@ -30,8 +30,6 @@ namespace RJWSexperience.Ideology [MayRequireIdeology] public static readonly HistoryEventDef Virgin_TookF; [MayRequireIdeology] public static readonly HistoryEventDef Virgin_TookM; [MayRequireIdeology] public static readonly PreceptDef Bestiality_OnlyVenerated; - [MayRequireIdeology] public static readonly PreceptDef Incestuos_IncestOnly; - [MayRequireIdeology] public static readonly PreceptDef Incestuos_Disapproved_CloseOnly; [MayRequireIdeology] public static readonly PreceptDef BabyFaction_AlwaysFather; [MayRequireIdeology] public static readonly PreceptDef BabyFaction_AlwaysColony; [MayRequireIdeology] public static readonly PreceptDef Submissive_Male;