Remove SecondaryRomanceChanceFactor boost for incest

This commit is contained in:
amevarashi 2022-07-05 17:40:06 +05:00
parent 5dd1deef82
commit 03ea73c82e
3 changed files with 0 additions and 33 deletions

View File

@ -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<PawnRelationDef> 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<T>(Ideo ideo) where T : Precepts.DefExtension_ModifyMtb
{
float finalMultiplier = 1f;

View File

@ -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
{

View File

@ -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;